Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

3h-log

A lib that helps you log things with various prefix easily.

3h3h-logconsolelogprefixdebugerrorinfolevelwarn
Published10 Feb 2018
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

3h-log

A logger lib.

Features

  • Log with formatted time stamps (using 3h-time)
  • Log with various prefixes
  • Log level control

Example


const Logger = require('3h-log'),
    logger = new Logger({ timeFormat: '[YYYY-MM-DD HH:mm:SS.sss]' });

logger.print('custom', 'Custom messages.');

logger.setLevel('log');

logger.error('Some errors.');
logger.warn('Some warnings.');
logger.info('Some infomation.');
logger.log('Some logs.');
logger.debug('This should not be seen!');

APIs

Just read the type declaration files in typings to learn the APIs.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-hl8CbjAVMl92QE4QauKTzpaqoMG2j1AuzfCvNqQ5VaaokPRQIPkBs0Pe4Ubo7TR9MCmwiDVT0pSsC6OEKLdyEQ==",
  "shasum": "005eeaa6eb07fb31e3c7948b9eb17a1e72c575ca",
  "tarball": "https://registry.npmjs.org/3h-log/-/3h-log-1.0.1.tgz",
  "fileCount": 4,
  "unpackedSize": 3571,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIBDRC/BNdeGQ+irphq8BQZh54P2p7VZqc6yQS3hQILLGAiAnnCYWsszxXUsfK5DsfYw0tfoLJIrYR1ks3wMVAY3e6g=="
    }
  ]
}

Repository

PENDING
huang2002/3h-log

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3baa9685f00a16f3e22ca1dcbf1568ba7d8fa0bd9eca245cf59486e3e52d569c

Other collected versions

3.1.21 Jun3.1.16 Aug3.1.08 Jul3.0.123 Jun3.0.023 Jun2.0.312 MayView all collected versions →