You are here: Foswiki>Tasks Web>Item5056 (23 Dec 2014, GeorgeClark)Edit Attach

Item5056: TWiki's logging is untidy

pencil
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiLogger
Branches:
Reported By: TWiki:Main.HaraldJoerg
Waiting For:
Last Change By: GeorgeClark
TWiki's access logging to logYYYYMM.txt makes wrong guesses and is inconsistent:
  • User agent heuristics:
    • Internet Explorer 6 is identified as "Mozilla"
    • Firefox is identified as empty string
  • User id field:
    • Most scripts log (in 4.2!) the unmodified login id
      • save with repRev logs the canonical id in the "detail" column
      • register logs the wikiname
  • Log file format:
    • logYYYYMM.txt has TML-table-ready format
    • configurationlog.txt and warnYYYYMM.txt lack the closing vertical bar on each line

I failed to find any documentation about TWiki's logging, so I guess it is a WAI (Works As Implemented).

-- HaraldJoerg

setting to Crawford, he's in that code atm

-- SvenDowideit - 08 Feb 2009

I rewrote the logging recently, and it (unintentionally) crept into 1.0.4. The rewrite doesn't cure all the problems above, but at least now all the log files are in a consistent format.

-- CrawfordCurrie - 07 Mar 2009

can we close it? - aka have you done all you're likely to address Harald's task?

-- SvenDowideit - 12 Aug 2009

I have done all I'm likely to, but it doesn't address Harald's user agent problem, so have to leave this open.

-- CrawfordCurrie - 18 Aug 2009

The logger code has been heavily modified, but marking for George's attention all the same (this can probably be closed no-action, but....)

-- CrawfordCurrie - 21 Dec 2014

I'm going to close as no-action. The User Agent handling could certainly be improved, but would probably entail using CPAN module that better understands UA strings. If you still want improved user agent handling, please open a new enhancement request. I'm hesitant however to add more dependencies on CPAN modules.

-- Main.GeorgeClark - 23 Dec 2014 - 19:58

ItemTemplate edit

Summary TWiki's logging is untidy
ReportedBy TWiki:Main.HaraldJoerg
Codebase
SVN Range TWiki-4.3.0, Sun, 25 Nov 2007, build 15790
AppliesTo Engine
Component FoswikiLogger
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r9 - 23 Dec 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy