Logger Members

MCManager API

The Logger type exposes the following members.

Constructors

  NameDescription
LoggerOverloaded.

Methods

  NameDescription
Debug
Logs a debug message if the debug level is enabled.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error
Logs a error message if the debug level is enabled.
Fatal
Logs a fatal message if the debug level is enabled.
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Info
Logs a info message if the debug level is enabled.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Trace
Logs a message if the specified level is enabled.
Warn
Logs a warn message if the debug level is enabled.

Properties

  NameDescription
FileFormat
Log file format for example: {level}.log
Format
Log message format for example: [{time}] [{level}] {message}
IsDebug
Is debug enabled. This bool property can be useful to do conditonal debug chunks to reduce the extra overhead to build the debug message.
IsError
Is error enabled. This bool property can be useful to do conditonal error chunks to reduce the extra overhead to build the error message.
IsFatal
Is fatal enabled. This bool property can be useful to do conditonal fatal chunks to reduce the extra overhead to build the fatal message.
IsInfo
Is info enabled. This bool property can be useful to do conditonal info chunks to reduce the extra overhead to build the info message.
IsWarn
Is warning enabled. This bool property can be useful to do conditonal warning chunks to reduce the extra overhead to build the warning message.
Level
Log level to use when writing to file.
LevelName
Level string name, useful when the logger level comes from a config or page parameter.
MaxFiles
Max log files in rotation.
MaxSize
Max file size with prefix for example: 10m or 100k.
Path
Log directory path. This is where the log files will be stored.
TimeFormat
Time format for example: yyyy-MM-dd HH:mm:ss

See Also