swc/bundler/tests/deno/issue-8486-1/input.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

24 lines
552 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();
}