import { LOG_LEVEL } from "./types" ; export let Logger = async ( message , _ ) => { const timestamp = new Date ( ) . toLocaleString ( ) ; const messagecontent = typeof message == "string" ? message : message instanceof Error ? `${ message . name }:${ message . message }` : JSON . stringify ( message , null , 2 ) ; const newmessage = timestamp + "->" + messagecontent ; console . log ( newmessage ) ; } ; export function setLogger ( loggerFun ) { Logger = loggerFun ; }