1.1.6 • Published 6 years ago
@phoenixjs/logger v1.1.6
PhoenixJSLogger
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