Create a logger for a specific path

the logger will log to the console if disableLogging is false and will log the path before the message

  • Parameters

    • path: string[]
    • disableLogging: boolean

    Returns {
        error: (message: string) => void;
        log: (message: string) => void;
        warn: (message: string) => void;
    }