Skip to content

Commit

Permalink
fix(api): make LogLevel non-const enum, minor fix ConsoleLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 26, 2019
1 parent 38b2c61 commit 88d5e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export type TypedArray =
*/
export type Watch<T> = (id: string, oldState: T, newState: T) => void;

export const enum LogLevel {
export enum LogLevel {
FINE,
DEBUG,
INFO,
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ export class ConsoleLogger implements ILogger {
}

protected log(level: string, args: any[]) {
console.info(`[${level}][${this.id}]`, ...args);
console.log(`[${level}] ${this.id}:`, ...args);
}
}

0 comments on commit 88d5e9d

Please sign in to comment.