Visual Basic (Declaration) | |
---|---|
Public Enum LogOptions Inherits System.Enum |
C# | |
---|---|
public enum LogOptions : System.Enum |
Member | Description |
---|---|
ConsoleColors | Uses a different color based on the level of the log message, Use ONLY nothing else is writting to the console. |
Default | These are the default options used. Addtionally, if your debugging or using asp.net trace, the following will also be set: LogAddFileInfo |
GZipLogFileOnRoll | GZip and append a .gz extension to log files as they are rolled, the current log file will remain unzipped. |
LogAddAssemblyInfo | Populate the MethodAssemblyVersion and MethodAssembly properties for logging. Requires at least the LogImmediateCaller information. |
LogAddFileInfo | If this is specified the file and line number where the log call was made will be available to log LogOutput. |
LogImmediateCaller | Calls new StackFrame( n ) to retrieve the immediate caller of the log routine and pass it along to all logging information. |
LogNearestCaller | Starting with n frames back walk back until the calling class is not decorated with the ////[System.Diagnostics.DebuggerNonUserCode()] attribute. This allows you to create wrapper classes that provide logging but are not considered to be the point of origin in the log. Can be slightly slower as this now reflects each class' attributes and addtionally may gather more than one stack frame. |
None | No LogOption enabled |
System.Object
System.ValueType
System.Enum
CSharpTest.Net.Logging.LogOptions
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7