C# Класс Monobjc.Logger

Very basic logger that handles four levels of log.

The levels are set through an environment variable MONOBJC_LOG_LEVEL. Output logs are printed in a Terminal console.

The levels are :

LevelAssociated Output DEBUG (MONOBJC_LOG_LEVEL >= debug)Low-level log (class registration, proxy creation, messaging, etc.). Beware that this level will slow down the execution. INFO (MONOBJC_LOG_LEVEL >= info)Output informationnal log (bridge starting, architectre and runtime selection, statistics, etc.). Beware that this level may slow down the execution. WARN (MONOBJC_LOG_LEVEL >= warning)Output warning log. There is no noticeable impact ERROR (MONOBJC_LOG_LEVEL >= error)Output error log. There is no noticeable impact
Показать файл Открыть проект

Открытые методы

Метод Описание
Debug ( String source, String message ) : void

Outputs a DEBUG log.

Error ( String source, String message ) : void

Outputs an ERROR log.

Info ( String source, String message ) : void

Outputs an INFO log.

Warn ( String source, String message ) : void

Outputs a WARNING log.

Приватные методы

Метод Описание
IsDebugEnabled ( ) : bool
IsErrorEnabled ( ) : bool
IsInfoEnabled ( ) : bool
IsWarningEnabled ( ) : bool
LogDebugMessage ( String source, String message ) : void
LogErrorMessage ( String source, String message ) : void
LogInfoMessage ( String source, String message ) : void
LogWarningMessage ( String source, String message ) : void

Описание методов

Debug() публичный статический метод

Outputs a DEBUG log.
public static Debug ( String source, String message ) : void
source String The source.
message String The message.
Результат void

Error() публичный статический метод

Outputs an ERROR log.
public static Error ( String source, String message ) : void
source String The source.
message String The message.
Результат void

Info() публичный статический метод

Outputs an INFO log.
public static Info ( String source, String message ) : void
source String The source.
message String The message.
Результат void

Warn() публичный статический метод

Outputs a WARNING log.
public static Warn ( String source, String message ) : void
source String The source.
message String The message.
Результат void