Skip to content

Logging Configuration

TaprNext logs operational events, errors, and debugging information. These settings control what gets logged and in what format.

Navigate to Tapr Settings > Other tab > Logging section.

SettingDefaultOptions
Log LevelINFODEBUG, INFO, WARNING, ERROR

Each level includes all messages from more severe levels:

LevelIncludesUse Case
ERRORErrors onlyProduction, minimal logging
WARNINGErrors + WarningsProduction, alert on issues
INFOErrors + Warnings + InfoStandard operation (default)
DEBUGAll messagesTroubleshooting, development

What each level logs:

ERROR: Failed API calls, extraction failures, database errors, integration failures

WARNING: Rate limit approaches, slow operations, deprecated feature usage, recoverable errors

INFO: Invoice processing events, successful API calls, workflow state changes, user actions

DEBUG: Detailed request/response data, internal state changes, performance metrics, step-by-step processing details

SettingDefaultOptions
Log Formattexttext, json

Text Format: Human-readable format suitable for manual review

  • Use for: Manual log review, development and testing, simple troubleshooting

JSON Format: Structured format for log aggregation tools

  • Use for: Log aggregation (ELK, Splunk, Datadog), automated alerting, analytics, production environments

TaprNext logs are written to Frappe’s standard log locations:

~/frappe-bench/logs/
frappe.log # General Frappe logs
worker.log # Background job logs
scheduler.log # Scheduled task logs
# View TaprNext-specific logs
grep "taprnext" ~/frappe-bench/logs/frappe.log
# View recent errors
grep "ERROR.*taprnext" ~/frappe-bench/logs/frappe.log | tail -50
# Watch logs in real-time
tail -f ~/frappe-bench/logs/frappe.log | grep "taprnext"

Frappe automatically rotates logs. Configure rotation in common_site_config.json:

{
"logging": {
"max_bytes": 10485760,
"backup_count": 5
}
}

For troubleshooting specific issues:

  1. Set Log Level to DEBUG
  2. Reproduce the issue
  3. Review logs for detailed information
  4. Return Log Level to INFO

Performance Note: DEBUG logging significantly increases log volume. Don’t leave it enabled in production.

  • AI Extraction Issues: grep "taprnext.ai" ~/frappe-bench/logs/frappe.log
  • Intake Channel Problems: grep "taprnext.intake" ~/frappe-bench/logs/frappe.log
  • ERP Integration Errors: grep "taprnext.adapters" ~/frappe-bench/logs/frappe.log
  • Approval Workflow: grep "taprnext.workflow" ~/frappe-bench/logs/frappe.log
FieldTypeDefaultDescription
log_levelSelectINFOMinimum severity to log
log_formatSelecttextOutput format (text or JSON)
SettingValueRationale
Log LevelINFO or WARNINGBalance visibility and volume
Log FormatjsonEnables log aggregation and alerting
SettingValueRationale
Log LevelDEBUGMaximum visibility for development
Log FormattextEasier to read during development

Set up alerts for:

  • ERROR level logs (immediate attention)
  • High frequency of WARNING logs (potential issues)
  • Specific patterns (integration failures, rate limits)

Consider compliance requirements:

  • Financial regulations may require log retention
  • Include logs in backup procedures
  • Define log retention policy