From: Robert Ancell Date: Thu, 22 Oct 2015 03:07:32 +0000 (+1300) Subject: Use logrotate to handle files in the default log directory. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/lightdm.git/commitdiff_plain/52e5a8fd1bc2a9e7a029918f686b8515fe51f2b2 Use logrotate to handle files in the default log directory. This change introduces support for log rotation using the logrotate tool for file in the default log directory (/var/log/lightdm). To support this scenario, existing system log files are not moved to *.old when starting. --- 52e5a8fd1bc2a9e7a029918f686b8515fe51f2b2 diff --cc src/log-file.h index 00000000,11d1151b..bfaee29f mode 000000,100644..100644 --- a/src/log-file.h +++ b/src/log-file.h @@@ -1,0 -1,21 +1,21 @@@ + /* + * Copyright (C) 2015 Alexandros Frantzis + * Author: Alexandros Frantzis + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. See http://www.gnu.org/copyleft/gpl.html the full text of the + * license. + */ + + #ifndef LOG_FILE_H_ + #define LOG_FILE_H_ + + #include + + #include "log-mode.h" + + int log_file_open (const gchar *log_filename, LogMode log_mode); + -#endif /* !LOG_FILE_H */ ++#endif /* LOG_FILE_H_ */