Change path conflicts between log filters to be auto-corrected.

This change makes it so when differing logging filters on the same
stream attempt to write to the same writer/path combination, the path
of the filter doing the later write will be automatically adjusted so
that it does not conflict with the other.  The path is adjusted by
appending "-N", where N is the smallest integer greater or equal to 2
required to resolve the path name conflict.

Addresses #842.
This commit is contained in:
Jon Siwek 2012-07-26 16:55:49 -05:00
parent 8633d91c40
commit 63e8bf72ed
7 changed files with 124 additions and 26 deletions

View file

@ -0,0 +1,23 @@
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path http-2
#start 2011-03-18-19-06-08
#fields host
#types string
bits.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
meta.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
upload.wikimedia.org
#end 2011-03-18-19-06-13