eazy-logger

WebJar for eazy-logger

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

eazy-logger
Last Version

Last Version

3.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

eazy-logger
WebJar for eazy-logger
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/shakyShane/eazy-logger

Download eazy-logger

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : tfunk jar [3.0.1,4)

Project Modules

There are no modules declared in this project.

##eazy-logger Build Status Coverage Status

tFunk + String Substitution

preview

##Install

$ npm install eazy-logger --save

##Usage

var logger  = require("eazy-logger").Logger({
    prefix: "{blue:[}{magenta:easy-logger}{blue:] }",
    useLevelPrefixes: true
});
/**
 * Standard loggers + prefixes
 */
logger.debug("Debugging Msg");
logger.info("Info statement");
logger.warn("A little warning with string %s", "substitution");
logger.error("an error occurred in file: {red:%s}", "/users/awesomedev/file.js");
/**
 * Use string substitution + colours
 */
logger.log("error", "Use {green:built-in} %s", "String substitution");
/**
 * Set an option for the next log statement only
 */
logger.setOnce("useLevelPrefixes", true).warn("Use {green:built-in} %s", "String substitution");

Versions

Version
3.0.2
2.1.2