can't write into log file

hi..
i'm newbie in here. i have some problem. i follow tutorial from here (http://sacharya.com/writing-ejabberd-modules/). i create module for write into ejabberd.log,.
this in my step.
1. i write first module (mod_write_module.erl --> this is my filename).

-module(mod_write_module).
-include("ejabberd.hrl").
-behavior(gen_mod).

-export([
    start/2,
    stop/1
    ]).

start(_Host, _Opt) ->
        ?INFO_MSG("Loading module 'mod_hello' ", []).

stop(_Host) ->
        ok.  

2. i compile using ejabberd with this command.
path/into/bin/erlc path/into/myfile/mod_write_module.erl
3. i got a mod_write_module.beam.
4. i'm copy this file(mod_write_module.beam) into C:\Program Files\ejabberd-2.1.11\lib\ejabberd-2.1.11,
5. i change ejabberd.cfg (C:\Program Files\ejabberd-2.1.11\conf) and i add this line into module.
{modules,
[
-------,
{mod_write_module, []},
-------,
]
}
and then save.
6. i'm restart ejabberd.

finally when i check ejabberd.log (C:\Users\xxxx\AppData\Roaming\ejabberd\logs). my create module can't write into log. i'm using ejabberd 2.1.11 ,erlang R14B04, and windows 7. any someone can help me for my first practice?

Your description looks

Your description looks correct. I tried it, and works for me: in ejabberd.log I see a line:

=INFO REPORT==== 2013-04-16 20:30:47 ===
I(<0.39.0>:mod_write_module:11) : Loading module 'mod_hello'

When you add your module to ejabberd.cfg, and you start ejabberd, see if there is any new message (maybe some error report?).

Syndicate content