in reply to Re^2: Daemon problem with sleep()
in thread Daemon problem with sleep()

Even after proper flushing, don't forget to rotate your log file properly using log4perl or log::agent modules, otherwise your log file may reach the maximum allowed file size by the OS and soon it may lead to catastrophic situations.