@korzun/log
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Log

npm version

Safe, Simple, Glanceable Logging

Installation

npm i @korzun/log

or

yarn add @korzun/log

Configuration Options

Level

Control the level of logging emitted. Defaults to error.

Environmental Variable

  LOG_LEVEL='debug'

Code

  import { create as createLog, Level } from '@korzun/log';
  const log = createLog({ level: Level.Debug });

Colors

Disable colors where they're not needed or supported. Defaults to true.

Environmental Variable

  LOG_COLOR='false'

Code

  import { create as createLog } from '@korzun/log';
  const log = createLog({ color: false });

Prefix

Disable prefixes where glanceability isn't relevant. Defaults to true.

Environmental Variable

  LOG_PREFIX='false'

Code

  import { create as createLog } from '@korzun/log';
  const log = createLog({ prefix: false });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i @korzun/log

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

41.8 kB

Total Files

32

Last publish

Collaborators

  • korzun