mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
vjudge: add uoj support
This commit is contained in:
1 parent
c696f51789
commit
35425f74e2
5 files changed
+253
-4
No files matched your search
@@ -19,7 +19,6 @@ export class Logger {
|
||||
static readonly INFO = 2;
|
||||
static readonly WARN = 2;
|
||||
static readonly DEBUG = 3;
|
||||
static baseLevel = process.env.DEV ? 4 : 2;
|
||||
static levels: Record<string, number> = {};
|
||||
private code: number;
|
||||
private displayName: string;
|
||||
@@ -88,7 +87,7 @@ export class Logger {
|
||||
}
|
||||
|
||||
get level() {
|
||||
return Logger.levels[this.name] ?? Logger.baseLevel;
|
||||
return process.env.DEV ? 3 : 2;
|
||||
}
|
||||
|
||||
format: (format: any, ...param: any[]) => string = (...args) => {
|
||||
|
||||
Reference in new issue
Block a user