diff --git a/deno.json b/deno.json index 8c10f86..5f1010c 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cross/log", - "version": "0.9.0", + "version": "0.9.1", "exports": { ".": "./mod.ts" }, diff --git a/mod.ts b/mod.ts index 28edc59..6369705 100644 --- a/mod.ts +++ b/mod.ts @@ -2,9 +2,9 @@ import { appendFile } from "node:fs/promises"; import { Colors } from "@cross/utils"; import { deepMerge } from "@cross/deepmerge"; -type LoggerFileFormat = "txt" | "json"; +export type LoggerFileFormat = "txt" | "json"; -interface LoggerOptions { +export interface LoggerOptions { file?: { enabled: boolean; stdoutPath?: string; @@ -17,7 +17,7 @@ interface LoggerOptions { logLevel?: LogLevel; } -enum LogLevel { +export enum LogLevel { Debug = "DEBUG", Info = "INFO", Log = "LOG",