mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 05:30:01 +00:00
fix broken imports
This commit is contained in:
@@ -1,4 +1 @@
|
||||
export * from "./factory";
|
||||
export * from "./disabled-logger";
|
||||
export { LogProvider } from "./types";
|
||||
export { SemanticLogger } from "./semantic-logger.abstraction";
|
||||
export * from "@bitwarden/logging";
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { SemanticLogger } from "./semantic-logger.abstraction";
|
||||
|
||||
/** Creates a semantic logger.
|
||||
* @param context all logs emitted by the logger are extended with
|
||||
* these fields.
|
||||
* @remarks The `message`, `level`, `provider`, and `content` fields
|
||||
* are reserved for use by the semantic logging system.
|
||||
*/
|
||||
export type LogProvider = <Context extends object>(context: Jsonify<Context>) => SemanticLogger;
|
||||
@@ -1,12 +0,0 @@
|
||||
import { LogService } from "../../platform/abstractions/log.service";
|
||||
|
||||
// show our GRIT - these functions implement generalized logging
|
||||
// controls and should return DISABLED_LOGGER in production.
|
||||
export function warnLoggingEnabled(logService: LogService, method: string, context?: any) {
|
||||
logService.warning({
|
||||
method,
|
||||
context,
|
||||
provider: "tools/log",
|
||||
message: "Semantic logging enabled. 🦟 Please report this bug if you see it 🦟",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user