cyclog(1) cyclog(1) NNAAMMEE cyclog - write a log to disk, with automatic rotation SSYYNNOOPPSSIISS ccyycclloogg [ --ss_s_i_z_e ] [ --nn_n_u_m ] [ --mm_m_a_r_g_i_n ] _d_i_r DDEESSCCRRIIPPTTIIOONN ccyycclloogg copies its input to a log file in the _d_i_r directory. When that file reaches 100000 bytes, ccyycclloogg makes sure it is safely written to disk and starts writing to a new file. ccyycclloogg also removes old files to guarantee that there are at most 10 log files in _d_i_r. The name of a log file is the TAI timestamp when the file was started. The mode of the file is 444 if it has been safely written to disk, 644 otherwise. A log file that has not been written to disk is not guaran- teed to survive a system crash. The _d_i_r directory must exist and be writable to _c_y_c_l_o_g. OOPPTTIIOONNSS --ss_s_i_z_e (Default: 104000. Minimum: 512.) Maximum file size. After writ- ing this many bytes to one file, ccyycclloogg will start a new file. --nn_n_u_m (Default: 10. Minimum: 1.) Maximum number of log files. If ccyycclloogg sees this many files before it opens a new file, it removes the oldest, as determined by the starting timestamps. --mm_m_a_r_g_i_n (Default: 4000.) ccyycclloogg tries to chop log files at line bound- aries. If it sees a newline within _m_a_r_g_i_n bytes of the maximum file size, it starts a new file. SSEEEE AALLSSOO fsync(2) cyclog(1)