#include "logrotate.h"#include <stdio.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <time.h>#include "messages.h"
Macros | |
| #define | LR_DEFAULT_SIZE 1000000 |
| #define | LR_DEFAULT_ROTATIONS 1 |
Functions | |
| void | logrotate_options_defaults (LogRotateOptions *logrotate_options) |
| gboolean | logrotate_is_enabled (LogRotateOptions *logrotate_options) |
| gboolean | logrotate_is_required (LogRotateOptions *logrotate_options, const gsize filesize) |
| gboolean | logrotate_is_pending (LogRotateOptions *logrotate_options) |
| gchar * | get_log_file_name (const gchar *filename, gsize rotation_suffix) |
| gsize | first_log_file_to_rotate (const gchar *filename, gsize max_rotations) |
| gint | rotate_log_file (const gchar *filename, gsize roation_suffix, gsize max_rotations) |
| LogRotateStatus | logrotate_do_rotate (LogRotateOptions *logrotate_options, const gchar *filename) |
| #define LR_DEFAULT_ROTATIONS 1 |
| #define LR_DEFAULT_SIZE 1000000 |
| gsize first_log_file_to_rotate | ( | const gchar * | filename, |
| gsize | max_rotations | ||
| ) |
| gchar* get_log_file_name | ( | const gchar * | filename, |
| gsize | rotation_suffix | ||
| ) |
| LogRotateStatus logrotate_do_rotate | ( | LogRotateOptions * | logrotate_options, |
| const gchar * | filename | ||
| ) |
| gboolean logrotate_is_enabled | ( | LogRotateOptions * | logrotate_options | ) |
| gboolean logrotate_is_pending | ( | LogRotateOptions * | logrotate_options | ) |
| gboolean logrotate_is_required | ( | LogRotateOptions * | logrotate_options, |
| const gsize | filesize | ||
| ) |
| void logrotate_options_defaults | ( | LogRotateOptions * | logrotate_options | ) |
| gint rotate_log_file | ( | const gchar * | filename, |
| gsize | roation_suffix, | ||
| gsize | max_rotations | ||
| ) |