Extract config entry

1 view
Skip to first unread message

Tilman

unread,
Nov 10, 2010, 6:28:47 PM11/10/10
to Log4erl
Hi there,

Is there a way to extract configuration entries from log4erl. I like
to get the file name for a specific logger. Does the API offer
something like log4erl:get_configuration_entry(Logger, Key)?

Cheers
- Tilman

Ahmed Ali

unread,
Nov 19, 2010, 2:20:06 AM11/19/10
to log...@googlegroups.com
Hi Tilman,

The short answer is no. There's no way to get appender's spec
(Logger's spec doesn't make sense since logger basically contains
multiple appenders with different specs). This capability needs to be
added to the API. However, you can get gen_event's process name/id
using log4erl:get_appenders/0,1 and somehow try to inspect the process
for init parameters. I'm not aware if this is possible though.

Best regards,

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