[asterisk-users] How to log into separate file
Pham Quy
quyps at vega.com.vn
Thu Apr 8 03:48:17 CDT 2010
On Wed, 2010-04-07 at 21:37 -0700, Steve Edwards wrote:
> On Thu, 8 Apr 2010, Pham Quy wrote:
>
> > I want to have a separate file to log what i need for my dialplan
> > without all output from Asterisk. By this way, i can easily to trace
> > problems caused by my dialplan.
>
> You can control how much and where Asterisk logs by fiddling with
> logger.conf. Personally, I like logging through syslog so I can configure
> all of my Asterisk hosts to send all of their logging to a central log
> host. I also use syslog() in my AGIs so everything is in the same place.
>
> For production, I use:
>
> syslog.local0 = error
>
> When I'm debugging something, I'll crank up the volume like:
>
> syslog.local0 = debug,dtmf,error,event,info,\
> notice,verbose,warning
>
> If this doesn't give you the level of logging you need, you could always
> call an AGI or do something really ugly like:
>
> exten = *,n, system(logger -t foo mumble)
Thanks,
I have another question. Does Asterisk support to define new logging
level?
Thanks in advance,
Quyps
More information about the asterisk-users
mailing list