1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

Platform logging lib (#15338)

* Add Platform Logging Lib

* Move console log spec and test util back into libs/common

* Fix ConsoleLogServer re-export

* Fix types error
This commit is contained in:
Justin Baur
2025-07-01 13:47:02 -04:00
committed by GitHub
parent 3ae5e063a7
commit 4cb80b4a03
20 changed files with 201 additions and 78 deletions

View File

@@ -0,0 +1,9 @@
import { LogLevel } from "./log-level";
export abstract class LogService {
abstract debug(message?: any, ...optionalParams: any[]): void;
abstract info(message?: any, ...optionalParams: any[]): void;
abstract warning(message?: any, ...optionalParams: any[]): void;
abstract error(message?: any, ...optionalParams: any[]): void;
abstract write(level: LogLevel, message?: any, ...optionalParams: any[]): void;
}