From b28e60ecaf5d48c36cb435361834f4884d9451c2 Mon Sep 17 00:00:00 2001 From: Christopher Dieringer Date: Sat, 25 Apr 2020 02:13:26 -0700 Subject: refactor(std/log): support enum log level (#4859) --- std/log/mod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'std/log/mod.ts') diff --git a/std/log/mod.ts b/std/log/mod.ts index 2f068f8ba..4032937a2 100644 --- a/std/log/mod.ts +++ b/std/log/mod.ts @@ -8,9 +8,12 @@ import { RotatingFileHandler, } from "./handlers.ts"; import { assert } from "../testing/asserts.ts"; +import { LevelName } from "./levels.ts"; + +export { LogLevels } from "./levels.ts"; export class LoggerConfig { - level?: string; + level?: LevelName; handlers?: string[]; } -- cgit v1.2.3