cheminfo-types
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -146,2 +146,40 @@ /** | ||
/** | ||
* Many libraries use a logger interface to log information about the processing | ||
* This logger is expected to be compatible with the one from the `pino` library | ||
*/ | ||
export interface Logger { | ||
child(bindings?: Record<string, any>): Logger; | ||
trace(obj: Record<string, unknown>, message: string): void; | ||
trace(message: string): void; | ||
trace(error: Error): void; | ||
trace(value: unknown, message?: string): void; | ||
debug(obj: Record<string, unknown>, message: string): void; | ||
debug(message: string): void; | ||
debug(error: Error): void; | ||
debug(value: unknown, message?: string): void; | ||
info(obj: Record<string, unknown>, message: string): void; | ||
info(message: string): void; | ||
info(error: Error): void; | ||
info(value: unknown, message?: string): void; | ||
warn(obj: Record<string, unknown>, message: string): void; | ||
warn(message: string): void; | ||
warn(error: Error): void; | ||
warn(value: unknown, message?: string): void; | ||
error(obj: Record<string, unknown>, message: string): void; | ||
error(message: string): void; | ||
error(error: Error): void; | ||
error(value: unknown, message?: string): void; | ||
fatal(obj: Record<string, unknown>, message: string): void; | ||
fatal(message: string): void; | ||
fatal(error: Error): void; | ||
fatal(value: unknown, message?: string): void; | ||
} | ||
/** | ||
* Defines 2 limits as numbers | ||
@@ -148,0 +186,0 @@ */ |
{ | ||
"name": "cheminfo-types", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Types for cheminfo packages and cheminfo data schema ", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14123
455