Logback: the reliable, generic, fast and flexible logging framework.
Copyright (C) 1999-2011, QOS.ch. All rights reserved.
This program and the accompanying materials are dual-licensed under
either the terms of the Eclipse Public License v1.0 as published by
the Eclipse Foundation
or (per the licensee's choosing)
under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation.
Implements methods common to most, it not all, rolling policies. Currently
such methods are limited to a compression mode getter/setter.
Given the FileNamePattern string, this method determines the compression
mode depending on last letters of the fileNamePatternStr. Patterns ending
with .gz imply GZIP compression, endings with '.zip' imply ZIP compression.
Otherwise and by default, there is no compression.
addInfo("Will use gz compression");
addInfo("Will use zip compression");
addInfo("No compression will be used");