lib/logger.js
/**
     * @brief Main function responsible for creating the logger or returning the
     *        existing logger.
     *
     * @return object bunyan logger object
     */
@brief Main function responsible for creating the logger or returning the
existing logger.

@return object bunyan logger object
@brief Main function responsible for creating the logger or returning the existing logger . @return object bunyan logger object
function create() {
        if (logger !== undefined) {
            return logger;
        }
        logger = bunyan.createLogger({
            name: constants.appName,
            level: config.LOG_LEVEL,
            src: true
        });
        return logger;
    }
function create ( ) { if ( logger !== undefined ) { return logger ; } logger = bunyan . createLogger ( { name : constants . appName , level : config . LOG_LEVEL , src : true } ) ; return logger ; }
@brief Main function responsible for creating the logger or returning the
        existing logger.
@brief Main function responsible for creating the logger or returning the existing logger .
// Logger already created. // Create bunyan logger.