PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
how to log file give maximum size

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Logging
View previous topic :: View next topic  
Author Message
kalpesh



Joined: 15 Sep 2008
Posts: 7

PostPosted: Wed Sep 24, 2008 12:10 pm    Post subject: how to log file give maximum size Reply with quote

I am using Pear Log package. When i used to log the events in file and that time file is created but i want my file not exceed than 1236 kb.If it exceeds then it will automatically create new file to log events.
Any help is appreciated.
Thanks in advance.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Wed Sep 24, 2008 9:00 pm    Post subject: Reply with quote

There is no built-in facility for such log file rotation in the file handler of the Log package. You have two options:
- implement it yourself (e.g. by extending the file handler)
- request this feature via the bug tracker (the Log authors might add this feature, but also might refuse to add it)

If you implement it yourself, you could propose your addition via the bug tracker, and the Log authors might accept your addition for a new release.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Logging All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement