Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Enumerations | Functions
Sld_log

Enumerations

enum  sld_log_severity { DBUG = 0, INFO = 1, WARN = 2, CRIT = 3 }
 

Functions

SLD_SSINT sld_log_write (const char *file_name, sld_log_severity severity, const char *text)
 Writes the specified text to the provided log file with the given severity. More...
 

Detailed Description

This module contains enums and functions related to logging.

Enumeration Type Documentation

Contains constants for log severity

Enumerator
DBUG 
INFO 
WARN 
CRIT 

Function Documentation

SLD_SSINT sld_log_write ( const char *  file_name,
sld_log_severity  severity,
const char *  text 
)

Writes the specified text to the provided log file with the given severity.

Parameters
file_namelog file name
severitylog severity
texttext entry for log
Returns
Success or failure
sld_log_write("salad.log", INFO, "This is only a test.");
Examples:
log.c.