Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

19 lignes
700 B

il y a 10 ans
  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