1234567891011121314151617181920212223242526272829 |
- 'use strict';
- const inspect = require('util').inspect;
- const format = require('./format');
- const { LEVEL, MESSAGE, SPLAT } = require('triple-beam');
- module.exports = format((info, opts = {}) => {
-
-
-
-
-
- const stripped = Object.assign({}, info);
-
-
- delete stripped[LEVEL];
- delete stripped[MESSAGE];
- delete stripped[SPLAT];
- info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);
- return info;
- });
|