log_file_daemon.cc File Reference
#include "squid.h"
#include <cassert>
#include <cerrno>
#include <csignal>
#include <cstring>
#include "helper/protocol_defines.h"
Include dependency graph for log_file_daemon.cc:

Go to the source code of this file.

Macros

#define LOGFILE_BUF_LEN   65536
 

Functions

static void rotate (const char *path, int rotate_count)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define LOGFILE_BUF_LEN   65536

Definition at line 34 of file log_file_daemon.cc.

Referenced by main().

Function Documentation

int main ( int  argc,
char *  argv[] 
)

The commands:

L<data>
- logfile data R
- rotate file T
- truncate file O
- repoen file F
- flush file r<n>
- set rotate count to <n> b<n>
- 1 = buffer output, 0 = don't buffer output

Definition at line 94 of file log_file_daemon.cc.

References assert, buf, fp, LOGFILE_BUF_LEN, NULL, rotate(), and xstrerr().

static void rotate ( const char *  path,
int  rotate_count 
)
static

Definition at line 37 of file log_file_daemon.cc.

References assert, i, MAXPATHLEN, and xstrerr().

Referenced by main().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors