Changes between Version 8 and Version 9 of LogViewerPlugin

Nov 7, 2009, 8:54:20 PM (9 years ago)



  • LogViewerPlugin

    v8 v9  
    3939There's no more configuration required.
     41== Configuration ==
     42No - no kidding. I said there's no more configuration ''required'' - however, it is ''possible''. If you want the LogViewerPlugin to immediately load and show content from your log file without the need to first (fill some form and) push the button, you can do so. With the IniAdminPlugin installed, just call up the ''logviewer'' section, and it will explain you the details. For everybody else, the details are here:
     44You need to introduce a new section to your `trac.ini` file. Using the default settings, it would look like this:
     47autoload = false
     48autotail = 1000
     49autolevel = 3
     50autoup = true
     53So what do those settings mean? Quite clear: `autoload` decides whether you want to turn this feature on (`true`) or not. By default, it is turned off. All the other `auto*` settings only apply if you set `autoload = true`.
     55With the `autotail` setting you limit LogViewer to those many lines from the end of the file. Normally, 1000 lines will be enough - but if you want to show everything, simply set it to some incredibly large number - e.g. 999999999. Keep in mind that with a huge log file, the page will take some time to load - every time you call up LogViewerPlugin. So better keep this value to something reasonable, and do the unusual full display on demand only.
     57`autolevel` specifies the log level to display, and `autoup` decides whether higher priority levels (i.e. those with lower numbers) shall be included. Note that this is a numeric value (integer, to be more precise) - and reaches from 1=critical to 5=debug (including 2=error, and 4=info), with a default of 3=warning.
    4159== Usage ==
    4260You find the ''Log Viewer'' on the ''Admin'' page in the ''General'' section (see [#Example below]). Having this page called, you select the log level you wish to see the entries for, using the drop-down. Optionally, you may chose to display all "higher priority" as well (where "higher" means the entries on top of the one you selected).