summaryrefslogtreecommitdiff
path: root/log/mod.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-01-19 19:46:46 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-01-19 13:46:46 -0500
commit4cc5839154d73f85f16593f6333375387cf56259 (patch)
tree5e7b2375f59ae6f4e8d0ba60cea5e97328acb7e9 /log/mod.ts
parenta489edc355e391117fc065dafe01bdf17c930b26 (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.ts4
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;