syslog-ng source
logrotate.h File Reference
#include "syslog-ng.h"
#include <logproto/logproto.h>
#include "messages.h"
Include dependency graph for logrotate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LogRotateOptions
 

Enumerations

enum  LogRotateStatus { LR_SUCCESS , LR_ERROR }
 

Functions

gboolean logrotate_is_enabled (LogRotateOptions *logrotate_options)
 
gboolean logrotate_is_required (LogRotateOptions *logrotate_options, const gsize filesize)
 
gboolean logrotate_is_pending (LogRotateOptions *logrotate_options)
 
void logrotate_options_defaults (LogRotateOptions *logrotate_options)
 
LogRotateStatus logrotate_do_rotate (LogRotateOptions *logrotate_options, const gchar *filename)
 

Enumeration Type Documentation

◆ LogRotateStatus

Enumerator
LR_SUCCESS 
LR_ERROR 

Function Documentation

◆ logrotate_do_rotate()

LogRotateStatus logrotate_do_rotate ( LogRotateOptions logrotate_options,
const gchar *  filename 
)

◆ logrotate_is_enabled()

gboolean logrotate_is_enabled ( LogRotateOptions logrotate_options)

◆ logrotate_is_pending()

gboolean logrotate_is_pending ( LogRotateOptions logrotate_options)

◆ logrotate_is_required()

gboolean logrotate_is_required ( LogRotateOptions logrotate_options,
const gsize  filesize 
)

◆ logrotate_options_defaults()

void logrotate_options_defaults ( LogRotateOptions logrotate_options)