| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Any ideas to reduce log file size or make log file size managed?
Hello everyone,
I found the log file size is becoming larger and larger. Any ideas to reduce the file size or make log file size managed, for example, keep the log file be fixed size or some other policies? Any reference tutorials or open source samples to recommend? thanks in advance, George |
|
#2
|
|||
|
|||
|
Hey see this might help you.
On regular basis (ofcource automated), truncate the log file or rename it to log_file_date (replace date with current time stamp). and create a new log file at the same time. In this way you can have log files or old days as well your log file will remain small. Let me know if this helps... Regards http://www.Einfoway.com http://www.Bidfreelancers.com http://www.A1domainhosting.com |
|
#3
|
|||
|
|||
|
Thank you bidfreelancers,
Quote:
How to (in what rule) shall we truncate the log file? I think your method does not make the total size of log files smaller, just make one new log file each day. Right? regards, George |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Any ideas to reduce log file size or make log file size managed? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|