packages/logger/index.js
Function sendMessage
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sendMessage(id, level, fallbackToLog, ...rest) {
const levelMethod = level.toLowerCase();
const options = buildMessageOptions(id);
const tagsToDisable = get(configRegistry, 'tags.disable', []);
const namespaceTags = get(configRegistry, `namespaces.${id}.tags`, []);
Function applyPlugins
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function applyPlugins(plugins = [], id, level, stats, ...rest) {