lib/utils/logger.js
function setupLogger(logger, path, context, applicationConfig) {
    logger.startContext(context);
    logger.setLevel(applicationConfig[path].logLevel);

    if (AmorphicContext.appContext.sendToLog) {
        logger.sendToLog = AmorphicContext.appContext.sendToLog;
    }
}
function setupLogger(logger, path, context, applicationConfig) {
    logger.startContext(context);
    logger.setLevel(applicationConfig[path].logLevel);

    if (AmorphicContext.appContext.sendToLog) {
        logger.sendToLog = AmorphicContext.appContext.sendToLog;
    }
}
function setupLogger ( logger , path , context , applicationConfig ) { logger . startContext ( context ) ; logger . setLevel ( applicationConfig [ path ] . logLevel ) ; if ( AmorphicContext . appContext . sendToLog ) { logger . sendToLog = AmorphicContext . appContext . sendToLog ; } }
To setup the logger based on a sendToLog function that is passed in from the application
to the listen function.

@param {unknown} logger unknown
@param {unknown} path unknown
@param {unknown} context unknown
@param {unknown} applicationConfig unknown
To setup the logger based on a sendToLog function that is passed in from the application to the listen function .