diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-10-22 16:07:32 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-10-22 16:07:32 +1300 |
commit | 4d4d2599688984c053dae2637407d9c0c9e65968 (patch) | |
tree | 60ceb5a368df86b16dafe883357992298956aafd /src/log-mode.h | |
parent | 50e86ea07632c556fa060208181303f16ad30481 (diff) | |
parent | 602dcab686d32f2f78cb207bb3620d6d754791e8 (diff) | |
download | lightdm-4d4d2599688984c053dae2637407d9c0c9e65968.tar.gz |
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.
Diffstat (limited to 'src/log-mode.h')
-rw-r--r-- | src/log-mode.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/log-mode.h b/src/log-mode.h new file mode 100644 index 00000000..65e39e0a --- /dev/null +++ b/src/log-mode.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2015 Alexandros Frantzis + * Author: Alexandros Frantzis <alexandros.frantzis@canonical.com> + * + * 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_MODE_H_ +#define LOG_MODE_H_ + +typedef enum +{ + LOG_MODE_INVALID = -1, + LOG_MODE_BACKUP_AND_TRUNCATE, + LOG_MODE_APPEND +} LogMode; + +#endif /* !LOD_MODE_H_ */ |