CSharpTest.Net
LogOptions Enumeration
See Also  Send Feedback Download Help File
CSharpTest.Net.Logging Assembly > CSharpTest.Net.Logging Namespace : LogOptions Enumeration

Glossary Item Box

Performance and behavior related LogOption for the log system.

Syntax

Visual Basic (Declaration) 
Public Enum LogOptions 
   Inherits System.Enum
C# 
public enum LogOptions : System.Enum 

Members

MemberDescription
ConsoleColorsUses a different color based on the level of the log message, Use ONLY nothing else is writting to the console.
DefaultThese are the default options used. Addtionally, if your debugging or using asp.net trace, the following will also be set: LogAddFileInfo
GZipLogFileOnRollGZip and append a .gz extension to log files as they are rolled, the current log file will remain unzipped.
LogAddAssemblyInfoPopulate the MethodAssemblyVersion and MethodAssembly properties for logging. Requires at least the LogImmediateCaller information.
LogAddFileInfoIf this is specified the file and line number where the log call was made will be available to log LogOutput.
LogImmediateCallerCalls new StackFrame( n ) to retrieve the immediate caller of the log routine and pass it along to all logging information.
LogNearestCallerStarting 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.
NoneNo LogOption enabled

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         CSharpTest.Net.Logging.LogOptions

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys