Files
NapCatQQ/.pnpm-store/v3/files/eb/1d764eece11de05ee7c6809927e01e12dddcbe3680d18aad1e6a0486d304edfcf2883739364db7b1c3609fddb2d0358bd6ac7fa1d9d2dca8a00f0e9cc65b4e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
487 B
Plaintext

'use strict';
var format = require('./format');
/*
* function label (info)
* Returns a new instance of the label Format which adds the specified
* `opts.label` before the message. This was previously exposed as
* { label: 'my label' } to transports in `winston < 3.0.0`.
*/
module.exports = format(function (info, opts) {
if (opts.message) {
info.message = "[".concat(opts.label, "] ").concat(info.message);
return info;
}
info.label = opts.label;
return info;
});