Skip to content

orchestra-platform/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Logger

Just a simple logger. The available log levels are: INFO, DEBUG, WARN, ERROR

Parameters

  • options Object
    • options.logLevel Number Must be one of Logger.LOG_LEVELS. (optional, default Logger.LOG_LEVELS.WARN)
    • options.name String Name of the logger (optional, default 'Logger')

i

Call Logger.write with logLevel = Logger.LOG_LEVELS.INFO

Parameters

d

Call Logger.write with logLevel = Logger.LOG_LEVELS.DEBUG

Parameters

w

Call Logger.write with logLevel = Logger.LOG_LEVELS.WARN

Parameters

e

Call Logger.write with logLevel = Logger.LOG_LEVELS.ERROR

Parameters

write

It prints a log to the console

Parameters

getLogger

It returns the Logger instance with the specified name

Parameters