Skip to content

Commit

Permalink
Item12023: Add eachEvent and File::Rolling
Browse files Browse the repository at this point in the history
Minor update to Logger.pm - need to require the iterator if the selected
logger does not implement it.

Added support for the File::Rolling logger, as well as cleaned up the
code a bit.  Copied the eachEventSince code from the PlainFile logger
into LogDispatch.  Works for the File logger, but needs some updates to
support File::Rolling.

git-svn-id: http://svn.foswiki.org/trunk@15285 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Aug 11, 2012
1 parent 902fe72 commit dd310f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Logger.pm
Expand Up @@ -79,6 +79,7 @@ requested level will be returned if any of the collapsed levels is selected.

# Default behaviour is an empty iteration
sub eachEventSince {
require Foswiki::ListIterator;
return new Foswiki::ListIterator( [] );
}

Expand Down

0 comments on commit dd310f0

Please sign in to comment.