pdorgambide/angular-logger

View on GitHub

Showing 4 of 4 total issues

Function LoggingEnhancer has 82 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var LoggingEnhancer = function(sprintf, moment) {
        var self = this;

        this.LEVEL = { TRACE: 4, DEBUG: 3, INFO: 2, WARN: 1, ERROR: 0, OFF: -1 };

Severity: Major
Found in src/logging-enhancer.js - About 3 hrs to fix

    Function enhanceLogging has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    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);
    Severity: Major
    Found in src/logging-enhancer.js - About 2 hrs to fix

      Function enhanceLogging has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              this.enhanceLogging = function(loggingFunc, level, context, config, datetimePattern, datetimeLocale, prefixPattern) {
      Severity: Major
      Found in src/logging-enhancer.js - About 50 mins to fix

        Function enhanceLogline has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                    function enhanceLogline(args, context, datetimePattern, datetimeLocale, prefixPattern) {
        Severity: Minor
        Found in src/logging-enhancer.js - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language