Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11950 closed defect (worksforme)

Syslog logging not working

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.

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 10 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
...

comment:2 by Ryan J Ollos, 10 years ago

Good to know that it is working. Massimo, please let us know if you find the issue by following up in your post on trac-users.

Last edited 10 years ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.