Visual Basic (Declaration) | |
---|---|
Public Shared Property Level As LogLevels |
C# | |
---|---|
public static LogLevels Level {get; set;} |
C# | ![]() |
---|---|
base.Setup(); Log.Config.Output = LogOutputs.TraceWrite; Log.Config.Options = LogOptions.LogAddAssemblyInfo | LogOptions.LogAddFileInfo | LogOptions.Default; Log.Config.Level = LogLevels.Verbose; Log.Config.SetOutputFormat(LogOutputs.TraceWrite, "NegativeTests: {FULLMESSAGE}"); _out = Console.Out; _error = Console.Error; Console.SetOut(new StringWriter()); Console.SetError(new StringWriter()); |
VB.NET | ![]() |
---|---|
MyBase.Setup() Log.Config.Output = LogOutputs.TraceWrite Log.Config.Options = LogOptions.LogAddAssemblyInfo Or LogOptions.LogAddFileInfo Or LogOptions.[Default] Log.Config.Level = LogLevels.Verbose Log.Config.SetOutputFormat(LogOutputs.TraceWrite, "NegativeTests: {FULLMESSAGE}") _out = Console.Out _error = Console.[Error] Console.SetOut(New StringWriter()) Console.SetError(New StringWriter()) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
Log.Config ClassLog.Config Members
LogLevels
Source Code
Log/Log.csTools/CmdTool/Config.cs