C# Class MTMCL.Logger

Afficher le fichier Open project: cvronmin/metocraft

Méthodes publiques

Свойство Type Description
LogReadOnly bool
debug bool

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static HelpLog ( string str, LogType type = LogType.Info ) : string
str string
type LogType
Résultat string

error() public static méthode

public static error ( Exception ex ) : void
ex System.Exception
Résultat void

error() public static méthode

public static error ( string message ) : void
message string
Résultat void

info() public static méthode

public static info ( string message ) : void
message string
Résultat void

log() public static méthode

public static log ( ) : void
Résultat void

log() public static méthode

public static log ( Config cfg, LogType type = LogType.Info ) : void
cfg Config
type LogType
Résultat void

log() public static méthode

public static log ( Exception ex, LogType type = LogType.Exception ) : void
ex System.Exception
type LogType
Résultat void

log() public static méthode

public static log ( LogType type = LogType.Info ) : void
type LogType
Résultat void

log() public static méthode

public static log ( Stream s, LogType type = LogType.Info ) : void
s Stream
type LogType
Résultat void

log() public static méthode

public static log ( string str, LogType type = LogType.Info ) : void
str string
type LogType
Résultat void

start() public static méthode

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

stop() public static méthode

public static stop ( bool logclose = true ) : void
logclose bool
Résultat void

Property Details

LogReadOnly public_oe static_oe property

public static bool LogReadOnly
Résultat bool

debug public_oe static_oe property

public static bool debug
Résultat bool