rename to core
This commit is contained in:
20
core/shared/logging/ConsoleLogger.ts
Normal file
20
core/shared/logging/ConsoleLogger.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ILogger } from './ILogger';
|
||||
|
||||
export class ConsoleLogger implements ILogger {
|
||||
debug(message: string, ...args: any[]): void {
|
||||
console.debug(message, ...args);
|
||||
}
|
||||
|
||||
info(message: string, ...args: any[]): void {
|
||||
console.info(message, ...args);
|
||||
}
|
||||
|
||||
warn(message: string, ...args: any[]): void {
|
||||
console.warn(message, ...args);
|
||||
}
|
||||
|
||||
error(message: string, ...args: any[]): void {
|
||||
console.error(message, ...args);
|
||||
}
|
||||
|
||||
}
|
||||
7
core/shared/logging/ILogger.ts
Normal file
7
core/shared/logging/ILogger.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
export interface ILogger {
|
||||
debug(message: string, ...args: any[]): void;
|
||||
info(message: string, ...args: any[]): void;
|
||||
warn(message: string, ...args: any[]): void;
|
||||
error(message: string, ...args: any[]): void;
|
||||
}
|
||||
Reference in New Issue
Block a user