Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/captains-log/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* Module dependencies.
*/
var write = require('./write');
var DEFAULT = require('./defaults');
/**
* Return a special version of `logger` which may
* be called directly as a function (implicitly calls
* `logger.debug` behind the scenes)
*
* @param {Dictionary} logger [original logger]
* @return {Function} [callable Logger]
* @api private
*/
module.exports = function _wrap(logger, options) {
// Make base logger callable (debug)
var _CallableLogger = write(logger.debug, 'debug', options);
// Mix-in log methods, but run `write`
// on their arguments to improve the readability
// of log output.
DEFAULT.METHODS.forEach(function(logAt) {
_CallableLogger[logAt] = write(logger[logAt], logAt, options);
});
return _CallableLogger;
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |