Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 378 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 378 Bytes

Logger

A minimal logger which uses aurelia logger.

Usage

import { LoggerFactory, ILog } from "@ssv/au-core";

const id = "auth.service";

@autoinject
export class AuthService {
	
	private logger: ILog;
	
	constructor(
		loggerFactory: LoggerFactory
	) {
		this.logger = loggerFactory.get(id);
	}
	
	login() {
		this.logger.debug("login", "msg goes here");
	}

}