您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
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