Catalog npm
Back to packageRELEASE DETAILS

1.1.3

npm

3h-log

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

3h3h-logconsolelogprefixdebugerrorinfolevelwarn
Published17 Feb 2018
Direct dependencies1
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 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^9.4.6development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-aEulAWYnMpHfsc5eb7396QlNrNuBVW/Wzye7rEStU+8hsG7znPIpKMwJ9WRRVHfBjPCSoMXBjxk32PeRWaqfRw==",
  "shasum": "29da913fa0c1130b5e7d1d46c8d5498e3e6c2b27",
  "tarball": "https://registry.npmjs.org/3h-log/-/3h-log-1.1.3.tgz",
  "fileCount": 5,
  "unpackedSize": 5123,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIBJxyQsW4LcXd9Ez1TexNGthw2CoF/t4sxbLIDdNq16pAiEAiMe3IBIhzW5ikh+qMNbXqS8gBE+fAIlxUfzGhFAKYc8="
    }
  ]
}

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:ce12c69b9fca1879b7fdbef7a68f64f7c707aaa99c05d227d73bf5975d53ae2a

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 →