We have moved to GitHub Issues
Created by Richard Soeteman 02 Jan 2013, 10:52:53 Updated by Morten Christensen 22 May 2013, 13:23:27
When using logging use Log.Add(LogTypes.Error.... The message "umbraco.BusinessLogic.LogTypes.Error is obsolete: 'Use LogHelper to write error log messages"
This is not possible because the LogHelper is an Internal class.
I don't see a problem in making the LogHelper public, but I'm not sure if there's a specific reason that it is currently not. Shannon / Morten?
If it can't me made public then it might be better to remove the obsolete message on LogTypes.Error
yes, it should be public, will change. Thx!
Is LogHelper public now? I'm confused how to use it in a Razor script to log a macro's progress. Was using Log.Add("LogTypes.Custom, node.Id, "log message") which worked but created the message above. Trying to switch to something like LogHelper.Error(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, node.Id+": log message") but there must be some @using statement I need at the top to make it work?
@Eric Umbraco.Core.Logging is where the LogHelper lives.
Any examples on how to use this logger? It seems as verbose as the old method at the minute if not more so?
Assignee: Shannon Deminick
Backwards Compatible: True
Affected versions: 6.0.0
Due in version: 6.0.0