(init): Add initial logger files.

This commit is contained in:
Nix "UwU" Krystik
2026-03-11 18:12:55 +08:00
commit b681797759
11 changed files with 204 additions and 0 deletions

9
src/typings/LogLevel.ts Normal file
View File

@@ -0,0 +1,9 @@
enum LogLevel {
Debug,
Information,
Warning,
Error,
Fatal,
}
export default LogLevel;

15
src/typings/Transport.ts Normal file
View 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;