Your log files are rotating, but your problem is that your log files don't
have have unique names. There is currently no functionality that
removes/deletes archived log files. You will have to extend
LoggerAppenderDailyFile
appender yourself, and provide the functionality.
If you don't know how t
Thanks Gorej. But here the problem is log rotation is not happening. It is
appending the data again after 1 week to the same file.I don't want log
file older than 1 week. This has to be achieved without any cronjob
process(to delete the older than 1 week file).
Regards,
Sireesh.
On Tue, Oct 8, 2
Take a look at LoggerAppenderDailyFile
Source code:
https://git-wip-us.apache.org/repos/asf?p=logging-log4php.git;a=blob;f=src/main/php/appenders/LoggerAppenderDailyFile.php;h=8dce01557213002b14412f8434c935fa4315a39a;hb=ae4116e491d46170378c39c8c861a0153a957f5b
Documentation:
http://logging.apache.
Thanks Gorej. But my requirement is log has to create like ..
Debug.Mon.00,Debug.Mon.01,Debug.Mon.02Debug.Mon.23
Debug.Tue.00,Debug.Tue.01,Debug.Tue.02Debug.Tue.23
--
--
Debug.Sun.00,Debug.Sun.01Debug.Sun.23
Again next week starting Debug
LoggerAppenderRollingFile doesn't have param named datePattern. I couldn't
find it in the source source anywhere. Archived rolled-over files are named
like this: file.log.1, file.log.2, if they are compressed, then
file.log.1.gz, file.log.2.gz. That's it I guess.
On Tue, Oct 8, 2013 at 7:36 AM, S
Hi,
Please help me to resolve the issue.
Thanks & Regards,
Sireesh.
On Mon, Oct 7, 2013 at 4:34 PM, Sireesh Naidu Beemineni <
[email protected]> wrote:
> Hi,
>
> Can any one please help me to use datePattern
> in LoggerAppenderRollingFile (*PHP*). Please find my sample code bel
Hi,
Can any one please help me to use datePattern
in LoggerAppenderRollingFile (*PHP*). Please find my sample code below.
Sample code:-
* *
* *
**
* *
**
* *
**
**
Thanks & Regards,
Sireesh.