Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1682 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

[PATCH] Link up logging documentation

Reported by: mramm Owned by: andrew.basson
Priority: normal Milestone: 2.0
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

 http://wiki.pylonshq.com/display/pylonsdocs/Logging

Test the above docs to make sure TG2 works, create tickets for any problems.

If things just work write a brief summary doc on the wiki, and link it to the above.

Attachments

ini_logging_tmpl.diff Download (1.6 KB) - added by andrew.basson 11 years ago.
Update development.ini_tmpl - add logging sections

Change History

comment:1 Changed 11 years ago by andrew.basson

  • Owner changed from anonymous to andrew.basson
  • Status changed from new to assigned

Have put together a test app and tested all the examples up until log4j.

It all "just works", so far.

 RotatingFileHandler took a little work until I read the python docs - quite useful they are.

[handler_accesslog]
class = handlers.RotatingFileHandler
args = ('access.log','a', 10000, 4)
level = DEBUG
formatter = generic

The import bits are:

RotatingFileHandler

is in module logging.handlers - therefore prefix the class with handlers.

args

Takes the argument list as required by the handler. E.g class RotatingFileHandler(filename[, mode[, maxBytes[, backupCount]]])

Will look at the rest of the logging options now.

comment:2 Changed 11 years ago by andrew.basson

The log4j and chainsaw worked really well out of the box.

Can someone give me a wiki page name and location for me to write this up.

Ta, Andrew.

comment:3 Changed 11 years ago by mramm

You can add the writeup here:

 http://docs.turbogears.org/2.0/LogSetup

comment:4 Changed 11 years ago by andrew.basson

Docs updated - awaiting feedback.

Changed 11 years ago by andrew.basson

Update development.ini_tmpl - add logging sections

comment:5 Changed 11 years ago by andrew.basson

  • Summary changed from Link up logging documentation to [PATCH] Link up logging documentation

comment:6 Changed 11 years ago by mramm

  • Status changed from assigned to closed
  • Resolution set to fixed

Patch applied r4293

Note: See TracTickets for help on using tickets.