Freeswitch Log Module

Source: Internet
Author: User
Tags freeswitch

I have created a freeswitch kernel research and exchange group, 45211986. welcome to join us. In addition, we provide the SIP-based communication server and client solution to develop the SIP/IMS video client, supports access to the SIP Softswitch, IMS core network, voice, video, and instant communication functions, and video formats such as h263, h264, and MPEG4
Soft encoding soft decoding: provides hardware codec interface connection, and provides servers. If you are interested, contact me.

Similar to asterisk, freeswitch supports three types of logs: console, file, and syslog.

Mod_console implements the console log function,Console. conf. xmlConfiguration file for this module,

There are two parameters,

 
<Settings>
 
<Param name = "colorize" value = "true"/>
 
<Param name = "loglevel" value = "info"/>
 
</Settings>

 

Colorize specifies which colors are used, and unified colors are used by default. Loglevel: Set the log level after the system is started.

This module provides the command console to dynamically set the log level,

Freeswitch @ internal> Console Help

Usage:

--------------------------------------------------------------------------------

Consolehelp

Consoleloglevel [[0-7] | <loglevel_string>]

Consolecolorize [ON | off | toggle]

--------------------------------------------------------------------------------

Freeswitch @ internal> console log

[Loglevel]

Freeswitch @ internal> console loglevel 3

+ Oklog Level 3 [3]

+ Okconsole Log Level Set to err

 

By default, the following levels are available:

Console loglevel console | alert | crit | err | warning | notice | info | debug

 

Mod_logfile.c enables logging to a file, which is recorded by default.Freeswitch. Log, rotate after reaching a certain size, suffix is a timestamp.

Log files are stored in the/usr/local/freeswitch/log directory by default. The configuration file of this module isLogfile. conf. xml

You can set the storage location of the file here, such as rotate and log level when the file is large.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.