diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-01-19 19:46:46 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-19 13:46:46 -0500 |
| commit | 4cc5839154d73f85f16593f6333375387cf56259 (patch) | |
| tree | 5e7b2375f59ae6f4e8d0ba60cea5e97328acb7e9 /log/mod.ts | |
| parent | a489edc355e391117fc065dafe01bdf17c930b26 (diff) | |
Implement formatters for log (denoland/deno_std#127)
Original: https://github.com/denoland/deno_std/commit/c304ee503a2f2bef8cee2cb03d07785ad060b7bc
Diffstat (limited to 'log/mod.ts')
| -rw-r--r-- | log/mod.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/log/mod.ts b/log/mod.ts index e8c762ac6..f332711b3 100644 --- a/log/mod.ts +++ b/log/mod.ts @@ -76,6 +76,10 @@ export function getLogger(name?: string) { return state.loggers.get(name); } +export function getHandler(name: string) { + return state.handlers.get(name); +} + export async function setup(config: LogConfig) { state.config = config; |
