C# Class Util.Logger

ファイルを表示 Open project: jediskywalker/RTDeals

Public Methods

Method Description
FlushToFile ( ) : void
Log ( LogLevel level, string function, string message, Exception ex ) : void

Log a message

LogDebug ( string message ) : void
LogDebug ( string function, string message ) : void
LogError ( string message ) : void
LogError ( string function, string message ) : void
LogError ( string function, string message, Exception ex ) : void
LogInfo ( string message ) : void
LogInfo ( string function, string message ) : void
LogWarn ( string message ) : void
LogWarn ( string function, string message ) : void
LogWarn ( string function, string message, Exception ex ) : void
SetLogFileName ( string filename ) : void

Dyanamically change flush count

SetMinLevel ( LogLevel level ) : void
SetMsgQueueSize ( int size ) : void

Dyanamically change flush count

Private Methods

Method Description
ExceptionMessage ( Exception ex ) : string
Logger ( ) : System
checkLogSize ( ) : void

Method Details

FlushToFile() public static method

public static FlushToFile ( ) : void
return void

Log() public static method

Log a message
public static Log ( LogLevel level, string function, string message, Exception ex ) : void
level LogLevel
function string
message string
ex System.Exception
return void

LogDebug() public static method

public static LogDebug ( string message ) : void
message string
return void

LogDebug() public static method

public static LogDebug ( string function, string message ) : void
function string
message string
return void

LogError() public static method

public static LogError ( string message ) : void
message string
return void

LogError() public static method

public static LogError ( string function, string message ) : void
function string
message string
return void

LogError() public static method

public static LogError ( string function, string message, Exception ex ) : void
function string
message string
ex System.Exception
return void

LogInfo() public static method

public static LogInfo ( string message ) : void
message string
return void

LogInfo() public static method

public static LogInfo ( string function, string message ) : void
function string
message string
return void

LogWarn() public static method

public static LogWarn ( string message ) : void
message string
return void

LogWarn() public static method

public static LogWarn ( string function, string message ) : void
function string
message string
return void

LogWarn() public static method

public static LogWarn ( string function, string message, Exception ex ) : void
function string
message string
ex System.Exception
return void

SetLogFileName() public static method

Dyanamically change flush count
public static SetLogFileName ( string filename ) : void
filename string
return void

SetMinLevel() public static method

public static SetMinLevel ( LogLevel level ) : void
level LogLevel
return void

SetMsgQueueSize() public static method

Dyanamically change flush count
public static SetMsgQueueSize ( int size ) : void
size int
return void