@phoenixjs/logger
v1.1.6
Published
Lightweight, extensible javascript logger that has risen from the ashes
Downloads
11
Readme
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
- Import the ILogger & Log packages, plus appropriate targets.
- Add targets to Log.
- Get logger (using 'this' as category)
- 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