Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#6086 closed enhancement (worksforme)

[patch] Add line number to log messages

Reported by: morris Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords: log line number
Cc: gt4329b@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Pretty much what the summary says. Instead of log lines like this:

2007-09-26 13:08:05,986 Trac[main] DEBUG: Dispatching ...

…this patch will give you log lines like this:

2007-09-26 13:08:05,986 Trac[main:142] DEBUG: Dispatching ...

What's not to like?

Attachments (1)

log_linenum_r6044.diff (505 bytes ) - added by morris 17 years ago.
Patch for trac/log.py (diff'd from trunk r6044)

Download all attachments as: .zip

Change History (3)

by morris, 17 years ago

Attachment: log_linenum_r6044.diff added

Patch for trac/log.py (diff'd from trunk r6044)

comment:1 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

You probably missed TracLogging#LogFormat: you can already customize the logging format in a very flexible way.

comment:2 by morris, 17 years ago

So I did, much to my chagrin :) Thanks

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.