Permalink
Browse files

one log option

  • Loading branch information...
1 parent 1f7cf07 commit 63bd4b3acad1acf12a21d2d8df125a1c6d2b7239 @athoune athoune committed Aug 10, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 README
  2. +2 −1 src/syslog.erl
View
2 README
@@ -30,7 +30,7 @@ API
syslog:open(Ident, Logopt, Facility) :
Ident is an arbitrary string
-Logopt is an array of options :
+Logopt is an atom or array of atom, you can use a number if you're brave enough :
* pid
* cons
* odelay
View
3 src/syslog.erl
@@ -145,7 +145,8 @@ openlog_opt(N) -> N.
logopt([Queue]) -> openlog_opt(Queue);
logopt([Tail|Queue]) ->
openlog_opt(Tail) bor logopt(Queue);
-logopt([]) -> 0.
+logopt([]) -> 0;
+logopt(N) -> openlog_opt(N).
load_path(File) ->
case lists:zf(fun(Ebin) ->

0 comments on commit 63bd4b3

Please sign in to comment.