【erlang error_logger】
error_logger:logfile({open,"test.txt"}).ok
(b@sunil)58> error_logger:warning_msg("high").
ok
=WARNING REPORT==== 25-Oct-2015::20:33:13 ===
high(b@sunil)59>
(b@sunil)60> error_logger:error_info("help\n").
ok
(b@sunil)61> error_logger:error_info("help\n").
ok
(b@sunil)62> error_logger:error_info("help~p").
ok
(b@sunil)63> error_logger:info_msg("attention~p").
ok
(b@sunil)64>
=INFO REPORT==== 25-Oct-2015::20:34:53 ===
ERROR: "attention~p" - []
(b@sunil)64> error_logger:info_msg("attention\n").
ok
=INFO REPORT==== 25-Oct-2015::20:35:00 ===
attention
(b@sunil)65>
页:
[1]