4.0.3 • Published 3 years ago

loggaby v4.0.3

Weekly downloads
46
License
MIT
Repository
github
Last release
3 years ago

Table of Contents

Install

npm install loggaby

Or with Yarn:
yarn add loggaby

Examples

Provided Here.

Documentation

new Loggaby(options)

The Loggaby constructor, which creates a new Loggaby instance.

  • options {Object}
    • debug {Boolean | String} Whether to print debug messages. Can be a boolean or 'auto'. (Default: true)
    • format {String} Format for how logs should look (Default: '{grey}{time}{reset} {level} > ')
    • levels {Object[]} Additional custom levels to provide.
      • name {String} Name of the level that appears in the logs.
      • color {String} Color of the level name. Accepted values are a hex value or named colors.
      • debug {Boolean} Whether this level will be hidden when options.debug is false.
      • fatal {Boolean} Whether to make the level name and message bold and underline (to be noticeable).
      • call {String} Name of the function to use this level.
    • transports {Object[]} (An array of objects or specifically transport instances) What transports to log to. An example is provided above. (Default: [TerminalTransport])

Default Levels

debug, log, warn, error and fatal
You can log with Loggaby.<Level>().

License

Loggaby is licensed under the MIT license.
Read here for more info.

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago