swc/crates/swc_bundler/tests/deno/issue-8486/1/input.ts
2022-05-04 14:25:28 +00:00

25 lines
557 B
TypeScript

import * as log from "https://deno.land/std/log/mod.ts";
export async function myCLI(): Promise<void> {
await log.setup({
handlers: {
// file: new log.handlers.FileHandler("DEBUG", {
// filename: 'my.log'
// }),
console: new log.handlers.ConsoleHandler("INFO"),
},
loggers: {
default: {
level: "DEBUG",
handlers: ["console", "file"],
},
},
});
log.info("Ok!");
}
if (import.meta.main) {
myCLI();
}