{"action":"created","issue":{"url":"https://api.github.com/repos/op/go-logging/issues/58","labels_url":"https://api.github.com/repos/op/go-logging/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/op/go-logging/issues/58/comments","events_url":"https://api.github.com/repos/op/go-logging/issues/58/events","html_url":"https://github.com/op/go-logging/issues/58","id":86630555,"number":58,"title":"Add per-level formatter","user":{"login":"henryx","id":1316723,"avatar_url":"https://avatars.githubusercontent.com/u/1316723?v=3","gravatar_id":"","url":"https://api.github.com/users/henryx","html_url":"https://github.com/henryx","followers_url":"https://api.github.com/users/henryx/followers","following_url":"https://api.github.com/users/henryx/following{/other_user}","gists_url":"https://api.github.com/users/henryx/gists{/gist_id}","starred_url":"https://api.github.com/users/henryx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryx/subscriptions","organizations_url":"https://api.github.com/users/henryx/orgs","repos_url":"https://api.github.com/users/henryx/repos","events_url":"https://api.github.com/users/henryx/events{/privacy}","received_events_url":"https://api.github.com/users/henryx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T15:05:56Z","updated_at":"2015-06-10T13:23:12Z","closed_at":"2015-06-10T08:26:54Z","body":"Currently Formatter is usable only in backend logger. In some cases (e.g. for debug messages) is preferable to apply a different Formatter without touch the backend. So, in this case, it would be useful to apply the Formatter in level functions (e.g. log.Debug(\"message\", formatter) )"},"comment":{"url":"https://api.github.com/repos/op/go-logging/issues/comments/110749167","html_url":"https://github.com/op/go-logging/issues/58#issuecomment-110749167","issue_url":"https://api.github.com/repos/op/go-logging/issues/58","id":110749167,"user":{"login":"henryx","id":1316723,"avatar_url":"https://avatars.githubusercontent.com/u/1316723?v=3","gravatar_id":"","url":"https://api.github.com/users/henryx","html_url":"https://github.com/henryx","followers_url":"https://api.github.com/users/henryx/followers","following_url":"https://api.github.com/users/henryx/following{/other_user}","gists_url":"https://api.github.com/users/henryx/gists{/gist_id}","starred_url":"https://api.github.com/users/henryx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryx/subscriptions","organizations_url":"https://api.github.com/users/henryx/orgs","repos_url":"https://api.github.com/users/henryx/repos","events_url":"https://api.github.com/users/henryx/events{/privacy}","received_events_url":"https://api.github.com/users/henryx/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T13:23:12Z","updated_at":"2015-06-10T13:23:12Z","body":"@giftig for example, I want to use the formatter \"%{time:2006-01-02 15:04:05.000} %{level} - Application - %{message}\" for all messages. In debug messages, I want to use the formatter \"%{time:2006-01-02 15:04:05.000} %{level} %{longfunc}:%{id:03x} - Application - %{message}\" because is very useful to know how the message is generated without replicate the code in every debug point. Alternatively, you need to codify all messages manually, and is very boring (and error prone)"}}