C# Class MTMCL.Logger

Show file Open project: cvronmin/metocraft

Public Properties

Property Type Description
LogReadOnly bool
debug bool

Public Methods

Method Description
HelpLog ( string str, LogType type = LogType.Info ) : string
error ( Exception ex ) : void
error ( string message ) : void
info ( string message ) : void
log ( ) : void
log ( Config cfg, LogType type = LogType.Info ) : void
log ( Exception ex, LogType type = LogType.Exception ) : void
log ( LogType type = LogType.Info ) : void
log ( Stream s, LogType type = LogType.Info ) : void
log ( string str, LogType type = LogType.Info ) : void
start ( FileMode mode = FileMode.Create, bool logshow = true ) : void
stop ( bool logclose = true ) : void

Private Methods

Method Description
HelpWrite ( string str, LogType type = LogType.Info ) : string
write ( Stream s, LogType type = LogType.Info ) : void
write ( string str, LogType type = LogType.Info ) : void
writeInfo ( LogType type = LogType.Info ) : string

Method Details

HelpLog() public static method

public static HelpLog ( string str, LogType type = LogType.Info ) : string
str string
type LogType
return string

error() public static method

public static error ( Exception ex ) : void
ex System.Exception
return void

error() public static method

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

info() public static method

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

log() public static method

public static log ( ) : void
return void

log() public static method

public static log ( Config cfg, LogType type = LogType.Info ) : void
cfg Config
type LogType
return void

log() public static method

public static log ( Exception ex, LogType type = LogType.Exception ) : void
ex System.Exception
type LogType
return void

log() public static method

public static log ( LogType type = LogType.Info ) : void
type LogType
return void

log() public static method

public static log ( Stream s, LogType type = LogType.Info ) : void
s Stream
type LogType
return void

log() public static method

public static log ( string str, LogType type = LogType.Info ) : void
str string
type LogType
return void

start() public static method

public static start ( FileMode mode = FileMode.Create, bool logshow = true ) : void
mode FileMode
logshow bool
return void

stop() public static method

public static stop ( bool logclose = true ) : void
logclose bool
return void

Property Details

LogReadOnly public static property

public static bool LogReadOnly
return bool

debug public static property

public static bool debug
return bool