Logging
Overview
Getting Started
Importing Logging Utilities
import {LogManager} from 'aurelia-framework';
import {ConsoleAppender} from 'aurelia-logging-console';Basic Configuration
export function configure(aurelia) {
// Add a console appender
LogManager.addAppender(new ConsoleAppender());
// Optionally set a default log level
LogManager.setLevel(LogManager.logLevel.debug);
aurelia.use
.standardConfiguration()
.globalResources();
aurelia.start().then(() => aurelia.setRoot());
}Creating a Logger
Log Levels
Log Level
Description
Setting Log Levels
Appenders
What are Appenders?
Default ConsoleAppender
Creating Custom Appenders
Advanced Usage
Multiple Appenders
Last updated
Was this helpful?