logging

WebJar for logging

License

License

MIT
Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

logging
Last Version

Last Version

3.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

logging
WebJar for logging
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/dylang/logging

Download logging

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/logging/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>logging</artifactId>
    <version>3.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/logging/
implementation 'org.webjars.npm:logging:3.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/logging/
implementation ("org.webjars.npm:logging:3.2.0")
'org.webjars.npm:logging:jar:3.2.0'
<dependency org="org.webjars.npm" name="logging" rev="3.2.0">
  <artifact name="logging" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='logging', version='3.2.0')
)
libraryDependencies += "org.webjars.npm" % "logging" % "3.2.0"
[org.webjars.npm/logging "3.2.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : nicely-format jar [1.1.0,2)
org.webjars.npm : chalk jar [1.1.3,2)
org.webjars.npm : debug jar [2.6.1,3)

Project Modules

There are no modules declared in this project.

Logging Build Status

Lightweight informative modern console logging.

logging

Install

yarn add logging

Features

  • Simple.
  • Log levels.
  • Nice coloring.

Usage

// or const createLogger = require('logging');  
import createLogger from 'logging';

const logger = createLogger('FeatureName');

logger.info('Interesting');
// -> [ Feature ] Interesting

logger.warn('Hmmm...', { details });
// -> [ WARNING Feature ] Hmmm... { details object }

logger.error('Not good.', 'Not good at all.', { err }, { context }, { etc });
// -> [ ERROR Feature ] Not good. Not good at all. { err } { context } ...

// uses the debug module, use DEBUG=* or DEBUG=FeatureName to see these items.
logger.debug('Interesting');
// -> [ Feature ] Interesting

Versions

Version
3.2.0