nslog.c File Reference

#include "ns.h"
#include <sys/stat.h>
#include <ctype.h>

Data Structures

struct  Log

Defines

#define LOG_COMBINED   1
#define LOG_FMTTIME   2
#define LOG_REQTIME   4

Functions

int NsLog_ModInit (char *server, char *module)

Define Documentation

#define LOG_COMBINED   1

isspace

#define LOG_FMTTIME   2

#define LOG_REQTIME   4


Function Documentation

int NsLog_ModInit ( char *  server,
char *  module 
)

----------------------------------------------------------------------

NsLog_ModInit --

Module initialization routine.

Results: NS_OK.

Side effects: Log file is opened, trace routine is registered, and, if configured, log file roll signal and scheduled procedures are registered.

----------------------------------------------------------------------

Register the info callbacks just once.

Initialize the log buffer.

Determine the log file name which, if not absolute, is expected to exist in the module specific directory. The module directory is created if necessary.

Get parameters from configuration file

Schedule various log roll and shutdown options.

Open the log and register the trace.


Generated on Tue Sep 4 19:58:57 2007 by  doxygen 1.5.1