Showing 4 of 4 total issues
Function LoggingEnhancer
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var LoggingEnhancer = function(sprintf, moment) {
var self = this;
this.LEVEL = { TRACE: 4, DEBUG: 3, INFO: 2, WARN: 1, ERROR: 0, OFF: -1 };
Function enhanceLogging
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.enhanceLogging = function(loggingFunc, level, context, config, datetimePattern, datetimeLocale, prefixPattern) {
config.logLevels = config.logLevels || [];
return function() {
if (levelPassesThreshold(context, level, config)) {
var enhancedArguments = enhanceLogline(arguments, context, datetimePattern, datetimeLocale, prefixPattern);
Function enhanceLogging
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.enhanceLogging = function(loggingFunc, level, context, config, datetimePattern, datetimeLocale, prefixPattern) {
Function enhanceLogline
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function enhanceLogline(args, context, datetimePattern, datetimeLocale, prefixPattern) {