Repository: couchdb-couch-log Updated Branches: refs/heads/master fb4157370 -> a783a0aad
Define behavioural callbacks with modern syntax Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/commit/a783a0aa Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/tree/a783a0aa Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/diff/a783a0aa Branch: refs/heads/master Commit: a783a0aad172b9967dd7f00b8f068a16f8b3c370 Parents: fb41573 Author: Eric Avdey <e...@eiri.ca> Authored: Thu Oct 8 09:43:33 2015 -0300 Committer: Eric Avdey <e...@eiri.ca> Committed: Thu Oct 8 10:01:52 2015 -0300 ---------------------------------------------------------------------- src/couch_log.erl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/a783a0aa/src/couch_log.erl ---------------------------------------------------------------------- diff --git a/src/couch_log.erl b/src/couch_log.erl index 384f85a..dbc8cad 100644 --- a/src/couch_log.erl +++ b/src/couch_log.erl @@ -19,13 +19,15 @@ -export([debug/2, info/2, notice/2, warning/2, error/2, critical/2, alert/2, emergency/2]). -export([set_level/1]). --export([behaviour_info/1]). +-callback debug(Fmt::string(), Args::list()) -> ok. +-callback info(Fmt::string(), Args::list()) -> ok. +-callback notice(Fmt::string(), Args::list()) -> ok. +-callback warning(Fmt::string(), Args::list()) -> ok. +-callback error(Fmt::string(), Args::list()) -> ok. +-callback critical(Fmt::string(), Args::list()) -> ok. +-callback alert(Fmt::string(), Args::list()) -> ok. +-callback set_level(Level::atom()) -> ok. -behaviour_info(callbacks) -> - [{debug, 2}, {info, 2}, {notice, 2}, {warning, 2}, - {error, 2}, {critical, 2}, {alert, 2}, {set_level, 1}]; -behaviour_info(_) -> - undefined. -spec debug(string(), list()) -> ok. debug(Fmt, Args) ->