New table Log::rotation_control that enables to control rotation

for individual files, overriding defaults.

The interface isn't the greatest but the best I can come up with right
now.
This commit is contained in:
Robin Sommer 2011-03-08 16:30:53 -08:00
parent eb736a34b3
commit df54cc6e78
5 changed files with 92 additions and 35 deletions

View file

@ -9,9 +9,9 @@ module Log;
type Filter: record;
type Stream: record;
type RotationInfo: record;
type RotationControl: record;
const Log::default_rotation_interval: interval;
const Log::default_rotation_postprocessor: string;
const Log::rotation_control : RotationControl;
function Log::__create_stream%(id: Log::ID, stream: Log::Stream%) : bool
%{