@orchestra-platform/logger

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Dec 15, 2017Oct 27, 2017Minified + gzip package size for @orchestra-platform/logger in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.