{"action":"created","issue":{"url":"https://api.github.com/repos/mirage/ocaml-asl/issues/8","repository_url":"https://api.github.com/repos/mirage/ocaml-asl","labels_url":"https://api.github.com/repos/mirage/ocaml-asl/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mirage/ocaml-asl/issues/8/comments","events_url":"https://api.github.com/repos/mirage/ocaml-asl/issues/8/events","html_url":"https://github.com/mirage/ocaml-asl/issues/8","id":155696939,"number":8,"title":"Build on other platforms","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T09:52:12Z","updated_at":"2016-05-19T10:16:04Z","closed_at":null,"body":"I like to be able to configure log levels and log destinations on the command-line: it useful to use stderr for debugging and then the system log (ASL or the Windows event log or syslog) in production. I don't enjoy writing programs which pre-process the source to omit logging systems like `asl` which will break the build on other platforms. Perhaps we could make this code build on other platforms and make it a runtime error to try to use it? IIRC this is the pattern that `conduit` already uses (although it does use pre-processing internally this is hidden from users)"},"comment":{"url":"https://api.github.com/repos/mirage/ocaml-asl/issues/comments/220283861","html_url":"https://github.com/mirage/ocaml-asl/issues/8#issuecomment-220283861","issue_url":"https://api.github.com/repos/mirage/ocaml-asl/issues/8","id":220283861,"user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T10:16:04Z","updated_at":"2016-05-19T10:16:04Z","body":"It would be great if we could have first-class support for OSX and Windows applications in `mirage` so that we could use the event log or the apple system log, named pipes or Unix domain sockets or `AF_HYPERV`, `launchd` or whatever Windows does for services. Definitely a good target to aim for!"}}