You are here: Foswiki>Tasks Web>Item9906 (03 Jan 2014, GeorgeClark)Edit Attach

Item9906: make the Loggers optionally more expressive - use a hash for the fields.

pencil
Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiLogger
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
because dementing the logs is un-necessary.

ie, add Logger::notsolossylog($this, $level, \%fields)

i want to use Loggers to abstract Monitor - and having field names will make a MongoDBLogger and an DBILogger more useful.

-- SvenDowideit - 27 Oct 2010

Reasonable. I only did the logs the way I did to try and maintain compatibility; a vain hope, as it turned out. Frankly, I find (from long experience with the apache log) that tabular logs or more trouble than they are worth. A serialised hash would work fine.

-- CrawfordCurrie - 19 Mar 2011

Cool. RedesignLoggerAPI pretty much does this. However goes to a complete hash interface for events. Logger::log( {level => ... })

-- GeorgeClark - 02 Oct 2012

I think we can set this to Duplicate?

-- GeorgeClark - 24 Oct 2012
 

ItemTemplate edit

Summary make the Loggers optionally more expressive - use a hash for the fields.
ReportedBy SvenDowideit
Codebase
SVN Range
AppliesTo Engine
Component FoswikiLogger
Priority Normal
CurrentState Duplicate
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r7 - 03 Jan 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