Hi waht does the following error mean when logger is initiating?

5 views
Skip to first unread message

githubbeginner

unread,
Oct 18, 2010, 5:16:56 PM10/18/10
to Log4erl
It looks like it fails on log4erl:conf("etc\log4erl.conf". I can see
the log files is created by log4erl and got content in it, however
erlang VM crashed with the following error in sasl-error.log. Anyone
shed some light?
I don't know what result in the error stack.

Thanks

This is the exception stack:
=INFO REPORT==== 18-Oct-2010::14:10:17 ===
application: beehive
exited: {{function_clause,
[{log4erl_parser,yeccpars1,[ok,{no_func,no_line},0,[],
[]]},
{log4erl_parser,yeccpars0,5},
{log4erl_conf,parse,1},
{log4erl_conf,conf,1},
{config,find_config_file,0},
{config,read,0},
{config,get,1},
{config,search_for_application_value_from_config,
1}]},
}}
type: permanent


}
}


log4erl.conf
%% Default logger
%% it includes a file appender and a console appender
logger{
file_appender app2{
dir = "log",
level = info,
file = "beehive_log",
type = size,
max = 100000,
suffix = log,
rotation = 5,
format = '[%L] %I %l%n'
}
}

This is my log4erl.config:

githubbeginner

unread,
Oct 18, 2010, 11:41:19 PM10/18/10
to Log4erl
Hi,

I forgot to include:
Error {error,{1,log4erl_lex,{illegal,"["}},1}
this before it prints out the stack

Thanks

Ahmed Ali

unread,
Oct 23, 2010, 10:45:37 AM10/23/10
to log...@googlegroups.com, edward...@gmail.com
Hi there,

I've tried the conf file you've sent with latest version of log4erl
(version 0.9.0) and couldn't reproduce the fault you're getting. I
suspect this is due to the slash before the file name in:

> log4erl:conf("etc\log4erl.conf").

Please try to run this again with either:

> log4erl:conf("etc/log4erl.conf").
or
> log4erl:conf("etc\\log4erl.conf").

Judging from the command you're using, this is a windows machine.
Also, if you could provide log4erl's version, it might be helpful.

If the above still doesn't work, please try to copy log4erl.conf file
to the same directory you're running log4erl from and try again
without the name of the directory (i.e. log4erl:conf("log4erl.conf")).

Let me know what happenes.

BR<

Ahmed

> --
> You received this message because you are subscribed to the Google Groups "Log4erl" group.
> To post to this group, send email to log...@googlegroups.com.
> To unsubscribe from this group, send email to log4erl+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/log4erl?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages