{"id":13508508,"url":"https://github.com/Vagabond/erlang-syslog","last_synced_at":"2025-03-30T11:31:59.378Z","repository":{"id":709025,"uuid":"355667","full_name":"Vagabond/erlang-syslog","owner":"Vagabond","description":"Erlang port driver for interacting with syslog via syslog(3)","archived":false,"fork":false,"pushed_at":"2022-03-18T23:44:40.000Z","size":220,"stargazers_count":86,"open_issues_count":5,"forks_count":56,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-29T04:06:57.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vagabond.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-10-30T20:39:28.000Z","updated_at":"2025-02-22T19:21:41.000Z","dependencies_parsed_at":"2022-07-07T15:08:18.826Z","dependency_job_id":null,"html_url":"https://github.com/Vagabond/erlang-syslog","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vagabond%2Ferlang-syslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vagabond%2Ferlang-syslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vagabond%2Ferlang-syslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vagabond%2Ferlang-syslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vagabond","download_url":"https://codeload.github.com/Vagabond/erlang-syslog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135748,"owners_count":20729057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:00:54.117Z","updated_at":"2025-03-30T11:31:59.343Z","avatar_url":"https://github.com/Vagabond.png","language":"Erlang","funding_links":[],"categories":["Logging"],"sub_categories":[],"readme":"Erlang driver for syslog\n------------------------\n\nThis is an erlang port driver for interacting with syslog.\n\nInstalling it\n-------------\n\n    ./rebar3 compile\n\nTrying it\n---------\n\nYou should have a look at syslog.h.\n\nIn another shell :\n\n    $ tail -f /var/log/syslog\n\nOr, for mac users :\n\n    $ tail -f /var/log/system.log\n\nIn erlang shell :\n\n    $ erl\n    \u003e syslog:start().\n    \u003e {ok,Log} = syslog:open(\"Beuha\", [cons, perror, pid], local0).\n    \u003e syslog:log(Log, err, \"Damned\").\n    \u003e syslog:log(Log, info, \"process count: ~w\", [length(processes())]).\n\nAPI\n---\n\n### syslog:open(Ident, Logopt, Facility) -\u003e {ok, port()} ###\n\n_Ident_ is an arbitrary string  \n_Logopt_ is an atom or array of atom, you can use a number if you're brave enough :\n\n * pid\n * cons\n * odelay\n * ndelay\n * perror\n\n_Facility_ is an atom :\n\n * kern\n * user\n * mail\n * daemon\n * auth\n * syslog\n * lpr\n * news\n * uucp\n * cron\n * authpriv\n * ftp\n * netinfo\n * remoteauth\n * install\n * ras\n * local0\n * local1\n * local2\n * local3\n * local4\n * local5\n * local6\n * local7\n\nThe `open` call returns either `{ok, Log}` where _Log_ is a syslog handle\nthat can be passed to subsequent `log` and `close` calls, or it will throw\n{error, badarg}.\n\n### syslog:log(Log, Priority, Message) -\u003e ok ###\n\n_Log_ is a syslog handle returned from `open`  \n_Priority_ can be a number or better, an atom :\n\n * emerg\n * alert\n * crit\n * err\n * warning\n * notice\n * info\n * debug\n\n_Message_ is a string.\n\n### syslog:log(Log, Priority, FormatMsg, FormatArgs) -\u003e ok ###\n\nSame as above, but allows for the construction of log messages similar to\nformatting strings via `io_lib:format/2`, where _FormatMsg_ indicates the\nformatting instructions and _FormatArgs_ is a list of arguments to be\nformatted.\n\n### syslog:close(Log) -\u003e ok ###\n\n_Log_ is a syslog handle returned from `open`\n\nBUGS\n----\n\n * None known\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVagabond%2Ferlang-syslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVagabond%2Ferlang-syslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVagabond%2Ferlang-syslog/lists"}