Ctrl K
ring2all.com

Logging Settings Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Configuration Tabs
  5. Settings Reference
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

---

1. Module Overview (Technical)

What Is Logging Settings?

Logging Settings is a FreeSWITCH logging configuration module that manages console output and file logging. It configures log levels, colorization, file rotation, and module-specific mappings.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│               Logging Settings Architecture                    │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Admin Panel                                                    │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Logging Settings                                  │   │
│  │                                                          │   │
│  │  Tabs:                                                   │   │
│  │  ├─ Console Logging                                     │   │
│  │  │   ├─ Colorize Output                                 │   │
│  │  │   ├─ Console Log Level                               │   │
│  │  │   └─ Console Mappings                                │   │
│  │  │                                                       │   │
│  │  └─ File Logging                                        │   │
│  │      ├─ Rotate on HUP                                   │   │
│  │      └─ File Logging Profiles                           │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Generates XML                                          │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │  console.conf.xml     logfile.conf.xml                   │   │
│  │                                                          │   │
│  │  <configuration name="console.conf">                     │   │
│  │    <param name="colorize" value="true"/>                │   │
│  │    <param name="loglevel" value="info"/>                │   │
│  │  </configuration>                                        │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Loaded by FreeSWITCH                                   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        FreeSWITCH Logging                                │   │
│  │                                                          │   │
│  │  Console → Terminal output                              │   │
│  │  File → /var/log/freeswitch/freeswitch.log             │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Files

FileDescription
modules/loggingSettings/Frontend module
console.conf.xmlConsole logging config
logfile.conf.xmlFile logging config
---

2. Module Overview (Commercial/Business)

Business Value

Logging Settings provides centralized log management:

Without Logging SettingsWith Logging Settings
Edit XML filesWeb interface
Default levelsCustom per-module
Manual rotationAutomatic rotation
No filteringTargeted logging

Use Cases

  1. Troubleshooting
- Enable debug for specific modules

- Track call issues

  1. Production Optimization
- Reduce log noise

- Manage log file size

  1. Compliance
- Log retention policies

- UUID tracking

  1. Monitoring Integration
- Log rotation for logrotate

- Structured output

Feature Highlights

FeatureBenefit
Console LoggingTerminal output control
File LoggingPersistent log files
Log LevelsFilter by severity
MappingsPer-module levels
RotationSize-based rollover
UUID PrefixSession tracking
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • Configure console log levels
  • Enable/disable colorized output
  • Create file logging profiles
  • Set log file rotation
  • Configure per-module log levels
  • Enable UUID prefixes for session tracking
  • Preview generated XML

Logging Settings Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Logging Settings                                   │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Configure FreeSWITCH console and file logging                  │
│                                                                 │
│  [Console Logging] [File Logging]                               │
│  ─────────────────────────────────────────────────────────────  │
│                                                                 │
│  Console Logging Settings                                       │
│                                                                 │
│  Colorize Output: ✓                                            │
│    Enables ANSI color highlighting in console output.           │
│                                                                 │
│  Console Log Level: [Debug] [Info] [Notice] [Warning] [Error]  │
│    ☐ Debug                                                     │
│    ✓ Info                                                      │
│    ✓ Notice                                                    │
│    ✓ Warning                                                   │
│    ✓ Error                                                     │
│    ✓ Critical                                                  │
│    ✓ Alert                                                     │
│                                                                 │
│  Console Mappings                                               │
│  Configure which log levels are displayed for specific targets. │
│                                                                 │
│  [+ Add Mapping]                                                │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Mapping Name       │ Log Levels                         │  │
│  ├────────────────────┼────────────────────────────────────┤  │
│  │ all                │ info, notice, warning, err         │  │
│  │ mod_sofia          │ debug, info, notice, warning, err  │  │
│  │ mod_lua            │ warning, err                       │  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  [View XML] [Save]                                              │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

File Logging Tab

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Logging Settings                                   │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  [Console Logging] [File Logging]                               │
│  ─────────────────────────────────────────────────────────────  │
│                                                                 │
│  File Logging Settings                                          │
│                                                                 │
│  Rotate on HUP Signal: ✓                                       │
│    Log file reopened on HUP signal for external rotation.       │
│                                                                 │
│  File Logging Profiles                                          │
│                                                                 │
│  [+ Add Profile]                                                │
│                                                                 │
│  ▼ Profile: mainlog                                             │
│  ├─ Log File Path: [/var/log/freeswitch/freeswitch.log]        │
│  ├─ Rollover (Bytes): [10485760         ] (10MB rollover)     │
│  ├─ Maximum Rotate: [5                  ] (keep 5 files)      │
│  ├─ UUID Prefix: ✓                                             │
│  └─ Mappings:                                                   │
│     ├─ all → info, notice, warning, err, crit, alert           │
│     └─ mod_sofia → debug, info, notice, warning, err           │
│                                                                 │
│  [View XML] [Download console.conf.xml] [Download logfile.conf.xml]│
│                                                                 │
│  [Save]                                                         │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Debug Module: Add mapping for specific module with debug level.
TIP
UUID Prefix: Enable to track logs by call session.
NOTE
Restart Required: Log configuration changes need FS reload.

---

4. Configuration Tabs

Console Logging Tab

FieldDescription
Colorize OutputANSI color highlighting
Console Log LevelVisible log levels
Console MappingsPer-target level overrides

File Logging Tab

FieldDescription
Rotate on HUPExternal rotation support
File Logging ProfilesLog file configurations

Profile Settings

FieldDescription
Profile NameIdentifier
Log File PathFile location
RolloverMax size before rotation (bytes)
Maximum RotateFiles to keep
UUID PrefixSession UUID in logs
MappingsPer-module log levels
---

5. Settings Reference

Log Levels

LevelSeverityUse Case
DebugLowestDevelopment, troubleshooting
InfoLowInformational messages
NoticeNormalNormal conditions
WarningMediumPotential issues
ErrorHighErrors occurred
CriticalVery HighCritical conditions
AlertHighestImmediate action needed

Common Mappings

MappingPurpose
allDefault for all modules
mod_sofiaSIP signaling
mod_luaLua scripts
mod_dptoolsDialplan tools
mod_xml_curlXML curl requests

Rollover Sizes

BytesHuman Readable
10485761 MB
52428805 MB
1048576010 MB
5242880050 MB
104857600100 MB
---

6. Common Scenarios & Examples

Scenario 1: Debug SIP Issues

  1. Go to Console Logging
  2. Add Mapping: mod_sofia = debug, info, notice, warning, err
  3. Save
  4. Monitor console for SIP debug

Scenario 2: Production Logging

  1. Go to File Logging
  2. Set Rollover = 10485760 (10MB)
  3. Set Maximum Rotate = 10
  4. Enable Rotate on HUP
  5. Set "all" mapping = warning, err, crit, alert
  6. Save

Scenario 3: Call Tracking

  1. Go to File Logging
  2. Enable UUID Prefix
  3. Save
  4. Logs now include session UUID

Scenario 4: Minimal Console

  1. Go to Console Logging
  2. Disable Debug, Info, Notice
  3. Keep only Warning, Error, Critical, Alert
  4. Save

---

7. Limitations & Important Notes

Technical Notes

NOTE
XML Generation: Creates console.conf.xml and logfile.conf.xml.
NOTE
HUP Signal: Used by logrotate for external rotation.
WARNING
Debug in Production: Avoid debug level in production (high volume).

Best Practices

  1. Production: Use Warning+ levels only
  2. Debug Temporarily: Turn off debug after troubleshooting
  3. Set Rotation: Prevent disk full issues
  4. UUID for Tracking: Enable for call troubleshooting
  5. Logrotate Integration: Enable Rotate on HUP

Log File Locations

DistributionDefault Path
Debian/Ubuntu/var/log/freeswitch/freeswitch.log
CentOS/RHEL/var/log/freeswitch/freeswitch.log
CustomConfigure in profile
---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
No logsProfile disabledEnable profile
Disk fullNo rotationSet rollover and maximum
Too verboseDebug enabledReduce log levels
No colorsColorize offEnable Colorize Output
Logs too quietLevels too strictAdd info, notice levels

Check Log Configuration

Bash
# View current log level
fs_cli -x "console loglevel"

# Switch console level temporarily
fs_cli -x "console loglevel debug"

# Check log file
tail -f /var/log/freeswitch/freeswitch.log

View Generated XML

Use "View XML" button to preview configuration before saving.

---

9. Glossary

TermDefinition
Log LevelMessage severity filter
MappingPer-module log level
RolloverSize-based file rotation
HUP SignalUnix signal for log rotation
UUID PrefixSession ID in log lines
ColorizeANSI terminal colors
---

Lua Script Status ℹ️

Configuration Module

ComponentStatus
Logging Settingsℹ️ Configuration module - generates console.conf.xml and logfile.conf.xml
Logging Settings is a configuration module. Settings are stored and used to generate FreeSWITCH logging configuration files. No Lua handlers are used.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?