triple-beam

WebJar for triple-beam

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

triple-beam
Last Version

Last Version

1.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

triple-beam
WebJar for triple-beam
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/winstonjs/triple-beam

Download triple-beam

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

triple-beam

Definitions of levels for logging purposes & shareable Symbol constants.

Usage

const { LEVEL } = require('triple-beam');
const colors = require('colors/safe');

const info = {
  [LEVEL]: 'error',
  level: 'error',
  message: 'hey a logging message!'
};

// Colorize your log level!
info.level = colors.green(info.level);

// And still have an unmutated copy of your level!
console.log(info.level === 'error');  // false
console.log(info[LEVEL] === 'error'); // true

Tests

Tests are written with mocha, assume, and nyc. They can be run with npm:

npm test
LICENSE: MIT
AUTHOR: Charlie Robbins
org.webjars.npm

winstonjs

A logger for just about everything

Versions

Version
1.3.0
1.1.0