{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1812","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1812/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1812/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1812/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1812","id":188506839,"number":1812,"title":"Custom appender for requestLog not working in 1.0.3","user":{"login":"matthewjsummers","id":796330,"avatar_url":"https://avatars.githubusercontent.com/u/796330?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewjsummers","html_url":"https://github.com/matthewjsummers","followers_url":"https://api.github.com/users/matthewjsummers/followers","following_url":"https://api.github.com/users/matthewjsummers/following{/other_user}","gists_url":"https://api.github.com/users/matthewjsummers/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewjsummers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewjsummers/subscriptions","organizations_url":"https://api.github.com/users/matthewjsummers/orgs","repos_url":"https://api.github.com/users/matthewjsummers/repos","events_url":"https://api.github.com/users/matthewjsummers/events{/privacy}","received_events_url":"https://api.github.com/users/matthewjsummers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-10T13:21:56Z","updated_at":"2016-11-10T13:58:04Z","closed_at":null,"body":"We have a custom appender (it uses the logstash-encoder) to output logs in json.  This is working fine for:\r\n\r\nlogging:\r\n  appenders:\r\n    - type: console\r\n    - type: logstash-file\r\n      threshold: TRACE\r\n      customFields: '{\"service-name\":\"ms-iam\"}'\r\n      currentLogFilename: log/application-json.log\r\n      archivedLogFilenamePattern: log/application-json-%d{yyyy-MM-dd}-%i.log.gz\r\n      archivedFileCount: 7\r\n      timeZone: Europe/Oslo\r\n      maxFileSize: 10MB\r\n\r\nHowever, when we try and add it to requestLog, no logging appears in the request log file.  Are custom appenders not supported for the requestLog?\r\n\r\nserver:\r\n    requestLog:\r\n    appenders:\r\n    - type: console\r\n    - type: logstash-file\r\n      threshold: TRACE\r\n      currentLogFilename: log/access-json.log\r\n      archivedLogFilenamePattern: log/access-json-%d{yyyy-MM-dd}-%i.log.gz\r\n      archivedFileCount: 7\r\n      maxFileSize: 10MB"},"comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments/259696105","html_url":"https://github.com/dropwizard/dropwizard/issues/1812#issuecomment-259696105","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1812","id":259696105,"user":{"login":"arteam","id":1717632,"avatar_url":"https://avatars.githubusercontent.com/u/1717632?v=3","gravatar_id":"","url":"https://api.github.com/users/arteam","html_url":"https://github.com/arteam","followers_url":"https://api.github.com/users/arteam/followers","following_url":"https://api.github.com/users/arteam/following{/other_user}","gists_url":"https://api.github.com/users/arteam/gists{/gist_id}","starred_url":"https://api.github.com/users/arteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteam/subscriptions","organizations_url":"https://api.github.com/users/arteam/orgs","repos_url":"https://api.github.com/users/arteam/repos","events_url":"https://api.github.com/users/arteam/events{/privacy}","received_events_url":"https://api.github.com/users/arteam/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T13:58:04Z","updated_at":"2016-11-10T13:58:04Z","body":"Hi @matthewjsummers,\r\n\r\nPlease check if your custom appender correctly works with logging events of the `IAccessEvent` type.\r\nNow in Dropwizard 1.0.* normal and request logs are produced by different libraries (`logback-classic` and `logback-access` respectively). Ideally, your appender should be able to work both with `ILoggingEvent` and `IAccessEvent`. But not all do so (for example, the syslog appender #1801)."}}
{"actor":{"display_login":"arteam"}}