1.1.6 • Published 6 years ago

@phoenixjs/logger v1.1.6

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

PhoenixJSLogger

GitHub license GitHub code size in bytes GitHub top language

Lightweight, extensible javascript logger that has risen from the ashes.
Useable in both Node & the Browser (using webpack), with the ability to add additional custom LogTargets.

Basic Usage

1) Import the ILogger & Log packages, plus appropriate targets.
2) Add targets to Log.
3) Get logger (using 'this' as category)
4) Log away!

import { ILogger, Log, ConsoleTarget } from "@phoenixjs/logger";
Log.addTarget(new ConsoleTarget());

const log: Ilogger = Log.getLogger(this);
log.debug("Debug Statement");
log.info("Info Statement");
log.error("Error Statement");

Log Levels

// TODO

Log Filters

// TODO

Custom Targets

// TODO

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago