Skip to Content
Asterisk: The Future of Telephony
book

Asterisk: The Future of Telephony

by Jim Van Meggelen, Jared Smith, Leif Madsen
September 2005
Intermediate to advanced
408 pages
16h 20m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony

logger.conf

The logger.conf file specifies the type and verbosity of messages logged to the various log files in the /var/log/asterisk/ directory. It has two sections, [general] and [logfile].

[general]

Settings under the [general] section are used to customize the output of the logs (and can safely be left blank, as the defaults serve most people very well). However, if you love to customize such things, read on.

You can define exactly how you want your timestamps to look through the use of the dateformat parameter:

    dateformat=%F %T

The Linux man page for strftime(3) lists all of the ways you can do this.

If you want to append your system’s hostname to the names of the log files, set appendhostname=yes. This can be useful if you have a lot of systems delivering log files to you.

If for some reason you do not want to log events from your queues, you can set queue_log=no.

If generic events do not interest you, instruct Asterisk to omit them from the by setting event_log=no.

[logfiles]

The [logfiles] section defines the types of information you wish to log. There are multiple ranks for the various bits of information that will be logged, and it can be desirable to separate log entries into different files. The general format for lines in the [logfiles] section is filename => levels, where filename is the name of the file to save the logged information to and levels are the types of information you wish to save.

Tip

Using console for the filename is a special exception that allows you to control ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asterisk: The Future of Telephony, 2nd Edition

Asterisk: The Future of Telephony, 2nd Edition

Jim Van Meggelen, Jared Smith, Leif Madsen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 0596009623Supplemental ContentCatalog PageErrata