Edgewall Software

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11950 closed defect (worksforme)

Syslog logging not working — at Version 1

Reported by: Massimo <massimo.b@…> Owned by:
Priority: normal Milestone:
Component: general Version: 1.0.3
Severity: normal Keywords: logging
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

Hi,

according to TracLogging enabling syslog should use /dev/log.

I'm using metalog, and like to switch logging to syslog for central rotation and compression. But it does not receive any log from Trac.

That socket is there:

srw-rw-rw- 1 root root 0 Feb  2 10:01 /dev/log=

Nginx which serves the Trac via uWSGI here itself is able to log to syslog like this:

error_log syslog:server=unix:/dev/log info;

This is Trac 1.0.3.

The logging section looks like:

[logging]
log_level = DEBUG
log_type = syslog

But metalog does not receive anything from Trac.

Change History (1)

comment:1 by Jun Omae, 9 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

An InstallationIssue. Works for me with Trac 1.0.3 on Ubuntu 12.04.

$ tail -f /var/log/syslog
Feb  7 01:13:44 localhost Trac[env] INFO: -------------------------------- environment startup [Trac 1.0.3] --------------------------------
Feb  7 01:13:44 localhost Trac[loader] DEBUG: Adding plugin QueryUiAssistPlugin 0.1 from /home/jun66j5/src/queryuiassistplugin
Feb  7 01:13:44 localhost Trac[loader] DEBUG: Adding plugin TracMercurial 1.0.0.3dev from /home/jun66j5/src/mercurial-plugin
Feb  7 01:13:44 localhost Trac[loader] DEBUG: Loading hg from /home/jun66j5/src/mercurial-plugin
Feb  7 01:13:45 localhost Trac[loader] DEBUG: Loading queryuiassist from /home/jun66j5/src/queryuiassistplugin
Feb  7 01:13:45 localhost Trac[loader] DEBUG: Loading trac.about from /home/jun66j5/venv/trac/1.0.3/lib/python2.5/site-packages
Feb  7 01:13:45 localhost Trac[loader] DEBUG: Loading trac.admin.console from /home/jun66j5/venv/trac/1.0.3/lib/python2.5/site-packages
...
Note: See TracTickets for help on using tickets.