cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

log.h File Reference
#include <stdarg.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  LogLevel {
  LogCritical , LogNormal , LogVerbose , LogDebug ,
  LOG_LEVEL_NOTHING = -1 , LOG_LEVEL_CRIT , LOG_LEVEL_ERR , LOG_LEVEL_WARNING ,
  LOG_LEVEL_NOTICE , LOG_LEVEL_INFO , LOG_LEVEL_VERBOSE , LOG_LEVEL_DEBUG
}
 

Functions

void logInit ()
 Initializes log system. More...
 
void logFinish ()
 Finishes the log system. More...
 
void log_entry (LogLevel level, char *format,...)
 Write a log entry. More...
 

Enumeration Type Documentation

◆ LogLevel

enum LogLevel
Enumerator
LogCritical 
LogNormal 
LogVerbose 
LogDebug 
LOG_LEVEL_NOTHING 
LOG_LEVEL_CRIT 
LOG_LEVEL_ERR 
LOG_LEVEL_WARNING 
LOG_LEVEL_NOTICE 
LOG_LEVEL_INFO 
LOG_LEVEL_VERBOSE 
LOG_LEVEL_DEBUG 

Definition at line 30 of file log.h.

Function Documentation

◆ log_entry()

void log_entry ( LogLevel  level,
char *  format,
  ... 
)

◆ logFinish()

void logFinish ( )

Finishes the log system.

Definition at line 131 of file log.c.

References LOG_STREAM.

Referenced by main().

◆ logInit()

void logInit ( )

Initializes log system.

Parameters
pathLog file

Definition at line 126 of file log.c.

References private_log_init().

Referenced by main().