{"action":"opened","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/843","repository_url":"https://api.github.com/repos/winstonjs/winston","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/843/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/843/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/843/events","html_url":"https://github.com/winstonjs/winston/issues/843","id":146984918,"number":843,"title":"Syslog level 'debug' not showing up","user":{"login":"Cobraeti","id":18352745,"avatar_url":"https://avatars.githubusercontent.com/u/18352745?v=3","gravatar_id":"","url":"https://api.github.com/users/Cobraeti","html_url":"https://github.com/Cobraeti","followers_url":"https://api.github.com/users/Cobraeti/followers","following_url":"https://api.github.com/users/Cobraeti/following{/other_user}","gists_url":"https://api.github.com/users/Cobraeti/gists{/gist_id}","starred_url":"https://api.github.com/users/Cobraeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cobraeti/subscriptions","organizations_url":"https://api.github.com/users/Cobraeti/orgs","repos_url":"https://api.github.com/users/Cobraeti/repos","events_url":"https://api.github.com/users/Cobraeti/events{/privacy}","received_events_url":"https://api.github.com/users/Cobraeti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T17:06:48Z","updated_at":"2016-04-08T17:06:48Z","closed_at":null,"body":"Hi,\r\nI'm trying to use Winston to automate my logging for an internship's project. I've just noticed that the debug logs don't show up, though I use the same method as for 'info', 'warn' and 'error' (which are perfectly displayed for what I need).\r\n\r\nHere is my code:\r\n```javascript\r\nvar winston = require('winston');\r\nvar dateFormat = require('dateformat');\r\n\r\nvar logger = new (winston.Logger)({\r\n  transports: [\r\n    new (winston.transports.Console)({\r\n      timestamp: function() {\r\n        var now = new Date();\r\n        return dateFormat(now, \"isoDateTime\");\r\n      },\r\n      formatter: function(options) {\r\n        // Return string will be passed to logger.\r\n        return options.timestamp() + options.level.toUpperCase() + ' ' + (options.message == undefined ? \"-\" : options.message);\r\n      }\r\n    })\r\n  ]\r\n});\r\n\r\nlogger.setLevels(winston.config.syslog.levels);\r\nwinston.addColors(winston.config.syslog.colors);\r\n\r\nmodule.exports = {\r\n  /**\r\n  * Log debuging messages\r\n  * @param  {String} message\r\n  */\r\n  debug: function(message) {\r\n    logger.log('debug','Data to log.');\r\n  },\r\n  /**\r\n  * Log information messages\r\n  * @param  {String} message\r\n  */\r\n  info: function(message) {\r\n    logger.log('info','Data to log.');\r\n  },\r\n  /**\r\n  * Log warning messages\r\n  * @param  {String} message\r\n  */\r\n  warn: function(message) {\r\n    logger.log('warn','Data to log.');\r\n  },\r\n  /**\r\n  * Log error messages\r\n  * @param  {String} message\r\n  */\r\n  error: function(message) {\r\n    logger.log('error','Data to log.');\r\n  }\r\n};\r\n```\r\nrunnung a test.js like:\r\n```javascript\r\nvar logger = require('./logger.js');\r\n\r\nlogger.debug('test');\r\nlogger.info('test');\r\nlogger.warn('test');\r\nlogger.error('test');\r\n```\r\ngives me only the following output:\r\n```\r\n2016-04-08T18:47:26+0200 INFO test\r\n2016-04-08T18:47:26+0200 WARN test\r\n2016-04-08T18:47:26+0200 ERROR test\r\n```\r\nAm I doing something wrong or does it comes from Winston?\r\n\r\nInfos:\r\nThe probem is the same on windows and linux:\r\n\r\n- On linux\r\n```\r\n$ node -v\r\nv0.10.42\r\n```\r\n\r\n- On windows:\r\n```\r\n> node -v\r\nv5.10.1\r\n```\r\n\r\nReplacing `logger.setLevels(winston.config.syslog.levels);` with `winston.setLevels(winston.config.syslog.levels);` doesn't change anything.\r\n\r\nAnd adding a `console.dir(winston.config.syslog.levels)` gives me the following object (that seems good to me...):\r\n```javascript\r\n{\r\n  levels:\r\n  {\r\n    emerg: 0,\r\n    alert: 1,\r\n    crit: 2,\r\n    error: 3,\r\n    warning: 4,\r\n    notice: 5,\r\n    info: 6,\r\n    debug: 7\r\n  },\r\n  colors:\r\n  {\r\n    emerg: 'red',\r\n    alert: 'yellow',\r\n    crit: 'red',\r\n    error: 'red',\r\n    warning: 'red',\r\n    notice: 'yellow',\r\n    info: 'green',\r\n    debug: 'blue'\r\n  }\r\n}\r\n```"}}