35 #define PIPE_CHUNK_SIZE 65536
37 #define PIPE_CHUNK_SIZE ((int) PIPE_BUF)
41 #define PIPE_CHUNK_SIZE 512
59 #define PIPE_HEADER_SIZE offsetof(PipeProtoHeader, data)
60 #define PIPE_MAX_PAYLOAD ((int) (PIPE_CHUNK_SIZE - PIPE_HEADER_SIZE))
63 #define PIPE_PROTO_IS_LAST 0x01
65 #define PIPE_PROTO_DEST_STDERR 0x10
66 #define PIPE_PROTO_DEST_CSVLOG 0x20
67 #define PIPE_PROTO_DEST_JSONLOG 0x40
100 #define LOG_METAINFO_DATAFILE "current_logfiles"
101 #define LOG_METAINFO_DATAFILE_TMP LOG_METAINFO_DATAFILE ".tmp"
#define pg_attribute_noreturn()
#define FLEXIBLE_ARRAY_MEMBER
NON_EXEC_STATIC void SysLoggerMain(int argc, char *argv[]) pg_attribute_noreturn()
PGDLLIMPORT int Log_file_mode
PGDLLIMPORT bool Logging_collector
PGDLLIMPORT int Log_RotationAge
bool CheckLogrotateSignal(void)
PGDLLIMPORT char * Log_filename
PGDLLIMPORT int Log_RotationSize
PGDLLIMPORT int syslogPipe[2]
void RemoveLogrotateSignalFiles(void)
void write_syslogger_file(const char *buffer, int count, int destination)
PGDLLIMPORT bool Log_truncate_on_rotation
PGDLLIMPORT char * Log_directory
int SysLogger_Start(void)