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 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
