import { getLoggingLevel } from "./screenshot-server/config" ; export type LoggingConfig = "DEBUG" | "NORMAL" ; function logDebug ( tag , message ) { if ( getLoggingLevel ( ) !== "DEBUG" ) { return ; } console . log ( `[DEBUG:${ tag }] ${ message }` ) ; } export const debugLogger = ( tag ) => ( message ) => logDebug ( tag , message ) ;