packages/ove-lib-utils/src/index.js
function (logLevel, args) {
            const time = dateFormat(new Date(), 'dd/mm/yyyy, h:MM:ss.l tt');
            // Each logger can have its own name. If this is
            // not provided, it will default to Unknown.
            const loggerName = __private.name || Constants.LOG_UNKNOWN_APP_ID;
            return [ (logLevel.name.length === 4 ? ' ' : '') +
                getLogLabel(logLevel)('[' + logLevel.name + ']'), time, '-',
            loggerName.padEnd(Constants.LOG_APP_ID_WIDTH), ':'].concat(Object.values(args));
        }
function (logLevel, args) {
            const time = dateFormat(new Date(), 'dd/mm/yyyy, h:MM:ss.l tt');
            // Each logger can have its own name. If this is
            // not provided, it will default to Unknown.
            const loggerName = __private.name || Constants.LOG_UNKNOWN_APP_ID;
            return [ (logLevel.name.length === 4 ? ' ' : '') +
                getLogLabel(logLevel)('[' + logLevel.name + ']'), time, '-',
            loggerName.padEnd(Constants.LOG_APP_ID_WIDTH), ':'].concat(Object.values(args));
        }
function ( logLevel , args ) { const time = dateFormat ( new Date ( ) , 'dd/mm/yyyy, h:MM:ss.l tt' ) ; // Each logger can have its own name. If this is // not provided, it will default to Unknown. const loggerName = __private . name || Constants . LOG_UNKNOWN_APP_ID ; return [ ( logLevel . name . length === 4 ? ' ' : '' ) + getLogLabel ( logLevel ) ( '[' + logLevel . name + ']' ) , time , '-' , loggerName . padEnd ( Constants . LOG_APP_ID_WIDTH ) , ':' ] . concat ( Object . values ( args ) ) ; }
Internal Utility function to build log messages.
Internal Utility function to build log messages .