Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 522 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 522 Bytes

Logger

Build Status

This is the Pagedip logging library. This works in both browsers and Node.js and has an API that is similar to console.

const logger = new Logger("my-logger");

// log
logger.debug("Debug message");
logger.info("Info message");
logger.warn("Warning message");
logger.error("Error message");

// log level
logger.setLogLevel("debug");
logger.atLogLevel("debug"); // true