Skip to content

Latest commit

 

History

History
364 lines (125 loc) · 6.05 KB

alog.md

File metadata and controls

364 lines (125 loc) · 6.05 KB

Module alog

Module alog

This module is a main alog module.

Behaviours: application.

It serves start/0 and stop/0 functions as a user API and implements appication behaviour. It also contains runtime logging API that mimics macroses defined in alog.hrl. There are 7 log levels (emergency, alert, critical, error, warning, notice, info and debug) and 3 functions for each log level - the one that accepts format string, arguments and list of tags, the one without tags and the one with string only.

alert/1
alert/2
alert/3
critical/1
critical/2
critical/3
dbg/1
dbg/2
dbg/3
emergency/1
emergency/2
emergency/3
error/1
error/2
error/3
info/1
info/2
info/3
log/4
notice/1
notice/2
notice/3
start/0Starts alog application.
stop/0Stops alog application.
warning/1
warning/2
warning/3

alert/1

alert(Format::nonempty_string()) -> ok



alert/2

alert(Format::nonempty_string(), Args::list()) -> ok



alert/3

alert(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



critical/1

critical(Format::nonempty_string()) -> ok



critical/2

critical(Format::nonempty_string(), Args::list()) -> ok



critical/3

critical(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



dbg/1

dbg(Format::nonempty_string()) -> ok



dbg/2

dbg(Format::nonempty_string(), Args::list()) -> ok



dbg/3

dbg(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



emergency/1

emergency(Format::nonempty_string()) -> ok



emergency/2

emergency(Format::nonempty_string(), Args::list()) -> ok



emergency/3

emergency(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



error/1

error(Format::nonempty_string()) -> ok



error/2

error(Format::nonempty_string(), Args::list()) -> ok



error/3

error(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



info/1

info(Format::nonempty_string()) -> ok



info/2

info(Format::nonempty_string(), Args::list()) -> ok



info/3

info(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



log/4

log(Format::nonempty_string(), Args::list(), Level::integer(), Tags::[atom()]) -> ok



notice/1

notice(Format::nonempty_string()) -> ok



notice/2

notice(Format::nonempty_string(), Args::list()) -> ok



notice/3

notice(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok



start/0

start() -> any()

Starts alog application

stop/0

stop() -> any()

Stops alog application

warning/1

warning(Format::nonempty_string()) -> ok



warning/2

warning(Format::nonempty_string(), Args::list()) -> ok



warning/3

warning(Format::nonempty_string(), Args::list(), Tag::[atom()]) -> ok