{"action":"opened","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/120","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/120/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/120/events","html_url":"https://github.com/gabime/spdlog/issues/120","id":100873457,"number":120,"title":"Provide option to use spdlog as a (static) library","user":{"login":"gregoire-astruc","id":494291,"avatar_url":"https://avatars.githubusercontent.com/u/494291?v=3","gravatar_id":"","url":"https://api.github.com/users/gregoire-astruc","html_url":"https://github.com/gregoire-astruc","followers_url":"https://api.github.com/users/gregoire-astruc/followers","following_url":"https://api.github.com/users/gregoire-astruc/following{/other_user}","gists_url":"https://api.github.com/users/gregoire-astruc/gists{/gist_id}","starred_url":"https://api.github.com/users/gregoire-astruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregoire-astruc/subscriptions","organizations_url":"https://api.github.com/users/gregoire-astruc/orgs","repos_url":"https://api.github.com/users/gregoire-astruc/repos","events_url":"https://api.github.com/users/gregoire-astruc/events{/privacy}","received_events_url":"https://api.github.com/users/gregoire-astruc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T21:31:44Z","updated_at":"2015-08-13T21:31:44Z","closed_at":null,"body":"For a reasonable sized project, the logger is very likely to be all over the place.\r\n\r\nRebuilding the whole project because an implementation detail changed would be a pain.\r\n\r\nCould we have a compile-time option (eg `SPDLOG_LIBRARY` or `SPDLOG_HEADER_ONLY`) that would allow somebody to choose between header-only or precompiled?\r\n\r\nI noticed cppformat uses a similar approach and I'd really appreciate that option.\r\n\r\nI can provide that if you're up for it."}}