Client integrated with std/log
import * as log from "https://deno.land/std/log/mod.ts";
import { PaleonAppHandler } from "./client.ts";
log.setup({
handlers: {
console: new log.handlers.ConsoleHandler("DEBUG"),
paleon: new PaleonAppHandler("DEBUG", {
project: "{PROJECT_NAME}",
id: "{DEPLOYMENT_ID}",
}),
},
loggers: {
default: { level: "DEBUG", handlers: ["console", "paleon"] },
},
});
const logger = getLogger();
logger.info("Hello Paleon!");
12