Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Do I have API in Umbraco for Log File or i have to create a text file and i have to write there.
Best regards , Vlad
Hi Vlad,
Logging is already supported via api and all logging goes into the database table umbracoLog.
A typical logging message you'd use in your code:
Hope this helps.
Regards,
/Dirk
Arrgghh, it's not posting my code
Second try:
BusinessLogic.Log.Add(BusinessLogic.LogTypes.Error,BusinessLogic.User.GetUser(0),-1,"Log message");
Just to note that the logs are not viewable out of the box (unless you look in the DB) but you can install the great Log Manager package from within Umbraco Package Repo then you are able to see them in Developer > Log manager.
Thanks for the log manager steer!
Log entry says: [UmbracoExamine] Error optimizing Lucene index,read past EOF, IndexSet: InternalIndexSet
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Log file Umbraco
Do I have API in Umbraco for Log File or i have to create a text file and i have to write there.
Best regards , Vlad
Hi Vlad,
Logging is already supported via api and all logging goes into the database table umbracoLog.
A typical logging message you'd use in your code:
Hope this helps.
Regards,
/Dirk
Arrgghh, it's not posting my code
Second try:
/Dirk
Just to note that the logs are not viewable out of the box (unless you look in the DB) but you can install the great Log Manager package from within Umbraco Package Repo then you are able to see them in Developer > Log manager.
Thanks for the log manager steer!
Log entry says: [UmbracoExamine] Error optimizing Lucene index,read past EOF, IndexSet: InternalIndexSet
is working on a reply...