(init): Add initial logger files.
This commit is contained in:
15
src/typings/Transport.ts
Normal file
15
src/typings/Transport.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import LogLevel from './LogLevel';
|
||||
|
||||
interface Transport {
|
||||
minLevel: LogLevel;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param level The logging level.
|
||||
* @param module The name of the module. This is defined when logging.
|
||||
* @param content The content of the module.
|
||||
*/
|
||||
log(level: LogLevel, module: string, content: string): Promise<void>;
|
||||
}
|
||||
|
||||
export default Transport;
|
||||
Reference in New Issue
Block a user