I tried the example 2-23 in page 33 from the upcoming book ‘Building Web Applications with Erlang’ .
The example is simple as shown below
error_logger:info_msg("~p:~p User Entered the System~n",
It is supposed to output this:
=INFO REPORT==== 16-Jan-2012::13:38:52 ===
m1:13 User Entered the System
But it is outputing this instead.
I also tried to do this:
Logger = error_logger:info_msg("~p:~p User Entered the System~n",[?MODULE,?LINE]),
But it did not help.
Please let me know what I am doing wrong.
This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.