All files / log / _config.ts

100.00% Branches 0/0
100.00% Lines 13/13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
x34
 
 
x34
 
x34
x34
x34
x34
 
x34
x34
x34
x68
x34
x34
x34

















// Copyright 2018-2025 the Deno authors. MIT license.

import { ConsoleHandler } from "./console_handler.ts";
import type { LogConfig } from "./logger.ts";

export const DEFAULT_LEVEL = "INFO";

export const DEFAULT_CONFIG: LogConfig = {
  handlers: {
    default: new ConsoleHandler(DEFAULT_LEVEL),
  },

  loggers: {
    default: {
      level: DEFAULT_LEVEL,
      handlers: ["default"],
    },
  },
};