0.0.9 • Published 8 years ago

@gik/tools-logger v0.0.9

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

@gik/tools-logger 0.0.9

A wrapper around Pino logger, with some extra features. Part of our tools suite.

Contributors
Supported platforms
  • darwin
  • linux

Table of contents

logger

A wrapper around pino.

Behaviour
  • When the environment is non-production it will output prettier logs.

  • Unless cfg.nothrow is set to true, All calls to error will use @gik/tools-thrower halting the execution when the environment is non-production (ie: development) however, when in production it will always fallback to Pino's default logger.

  • When cfg.extreme is set to true and the environment is set as production it will load extreme-mode adding an even faster approach to logging. (make sure to read the documentation about the caveats)

Parameters
Returns

Types.Instance - A function that you can use for logging.

Throws
  • Types.ParamTypeError - When parameters are not valid.

▲ Top


Types

Members

▲ Top


ParamTypeError

static typedef of Types

Thrown when invalid parameters are sent to the constructor.

▲ Top


0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago