@case-contract-testing/case
Version:
Next-generation contract testing suite
24 lines (23 loc) • 940 B
TypeScript
export type LogLevel = 'none' | 'error' | 'warn' | 'debug' | 'maintainerDebug' | 'deepMaintainerDebug';
export interface Logger {
/**
* Something has gone wrong during the execution of the test framework
*/
error: (message: string, ...additional: unknown[]) => void;
/**
* It seems likely that there is a misconfiguration
*/
warn: (message: string, ...additional: unknown[]) => void;
/**
* Information to help users find out what is happening during their tests
*/
debug: (message: string, ...additional: unknown[]) => void;
/**
* Information to help maintainers debug what is happening in the test framework
*/
maintainerDebug: (message: string, ...additional: unknown[]) => void;
/**
* Like maintainerDebug, but much deeper - including eg detailled matching docs, etc.
*/
deepMaintainerDebug: (message: string, ...additional: unknown[]) => void;
}