You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
700 B

  1. %%% Author : Geoff Cant <nem@erlang.geek.nz>
  2. %%% Description : Logging macros
  3. %%% Created : 13 Jan 2006 by Geoff Cant <nem@erlang.geek.nz>
  4. -ifndef(logging_macros).
  5. -define(logging_macros, true).
  6. -define(INFO(Format, Args),
  7. error_logger:info_msg("pid=~p mod=~p line=~p " ++ Format,
  8. [self(), ?MODULE, ?LINE | Args])).
  9. -define(WARN(Format, Args),
  10. error_logger:warning_msg("pid=~p mod=~p line=~p " ++ Format,
  11. [self(), ?MODULE, ?LINE | Args])).
  12. -define(ERR(Format, Args),
  13. error_logger:error_msg("pid=~p mod=~p line=~p " ++ Format,
  14. [self(), ?MODULE, ?LINE | Args])).
  15. -endif. %logging