C# Class TI.Toolbox.Logging

显示文件 Open project: x893/BTool

Public Methods

Method Description
CheckLogging ( MsgType msgType ) : bool
Close ( ) : bool
GetCommandLineMode ( ) : bool
GetConsoleLogging ( ) : bool
GetConsoleMsgLevel ( ) : MsgType
GetFileLogging ( ) : bool
GetFileMsgLevel ( ) : MsgType
GetHighResTime ( ) : bool
GetMsgTypeStr ( MsgType msgType ) : string
GetUseMsgBox ( ) : bool
SetCommandLineMode ( bool commandLineMode ) : bool
SetConsoleLogging ( bool useConsole ) : bool
SetConsoleMsgLevel ( MsgType newMsgLevel ) : bool
SetFileLogging ( bool fileLogging ) : void
SetFileMsgLevel ( MsgType newMsgLevel ) : bool
SetHighResTime ( bool useHighRes ) : bool
SetLogFileMaxLength ( long maxLength ) : bool
SetPathAndLogFileName ( string location ) : bool
SetUseMsgBox ( bool useMBox ) : bool
Write ( MsgType msgType, string extraInfo, string format ) : bool

Private Methods

Method Description
EraseFileLog ( ) : bool
Logging ( ) : System
Open ( ) : bool
UpdateFileLog ( string newMessage ) : bool
UpdatePositionLog ( long dataLength ) : bool

Method Details

CheckLogging() public method

public CheckLogging ( MsgType msgType ) : bool
msgType MsgType
return bool

Close() public method

public Close ( ) : bool
return bool

GetCommandLineMode() public method

public GetCommandLineMode ( ) : bool
return bool

GetConsoleLogging() public method

public GetConsoleLogging ( ) : bool
return bool

GetConsoleMsgLevel() public method

public GetConsoleMsgLevel ( ) : MsgType
return MsgType

GetFileLogging() public method

public GetFileLogging ( ) : bool
return bool

GetFileMsgLevel() public method

public GetFileMsgLevel ( ) : MsgType
return MsgType

GetHighResTime() public method

public GetHighResTime ( ) : bool
return bool

GetMsgTypeStr() public method

public GetMsgTypeStr ( MsgType msgType ) : string
msgType MsgType
return string

GetUseMsgBox() public method

public GetUseMsgBox ( ) : bool
return bool

SetCommandLineMode() public method

public SetCommandLineMode ( bool commandLineMode ) : bool
commandLineMode bool
return bool

SetConsoleLogging() public method

public SetConsoleLogging ( bool useConsole ) : bool
useConsole bool
return bool

SetConsoleMsgLevel() public method

public SetConsoleMsgLevel ( MsgType newMsgLevel ) : bool
newMsgLevel MsgType
return bool

SetFileLogging() public method

public SetFileLogging ( bool fileLogging ) : void
fileLogging bool
return void

SetFileMsgLevel() public method

public SetFileMsgLevel ( MsgType newMsgLevel ) : bool
newMsgLevel MsgType
return bool

SetHighResTime() public method

public SetHighResTime ( bool useHighRes ) : bool
useHighRes bool
return bool

SetLogFileMaxLength() public method

public SetLogFileMaxLength ( long maxLength ) : bool
maxLength long
return bool

SetPathAndLogFileName() public method

public SetPathAndLogFileName ( string location ) : bool
location string
return bool

SetUseMsgBox() public method

public SetUseMsgBox ( bool useMBox ) : bool
useMBox bool
return bool

Write() public method

public Write ( MsgType msgType, string extraInfo, string format ) : bool
msgType MsgType
extraInfo string
format string
return bool