logger.cc File Reference

#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include "logger.h"
#include "config_manager.h"

Go to the source code of this file.

Defines

#define FLUSHIT   fflush(LOG_FILE);
#define LOGCHECK   if (!LOG_FILE) return;

Functions

void log_open (char *filename)
void log_close ()
static void log_stamp (const char *type)
void _log_info (const char *format,...)
void _log_warning (const char *format,...)
void _log_error (const char *format,...)
void _log_js (const char *format,...)
void _log_debug (const char *format, const char *file, int line, const char *function,...)
void _print_backtrace (FILE *file)

Variables

FILE * LOG_FILE = stderr

Detailed Description

Definition in file logger.cc.


Define Documentation

#define FLUSHIT   fflush(LOG_FILE);

Definition at line 52 of file logger.cc.

Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().

#define LOGCHECK   if (!LOG_FILE) return;

Definition at line 54 of file logger.cc.

Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().


Function Documentation

void _log_debug ( const char *  format,
const char *  file,
int  line,
const char *  function,
  ... 
)

Definition at line 132 of file logger.cc.

References FLUSHIT, ConfigManager::isDebugLogging(), LOG_FILE, log_stamp(), and LOGCHECK.

void _log_error ( const char *  format,
  ... 
)

Definition at line 112 of file logger.cc.

References FLUSHIT, LOG_FILE, log_stamp(), and LOGCHECK.

void _log_info ( const char *  format,
  ... 
)

Definition at line 92 of file logger.cc.

References FLUSHIT, LOG_FILE, log_stamp(), and LOGCHECK.

void _log_js ( const char *  format,
  ... 
)

Definition at line 122 of file logger.cc.

References FLUSHIT, LOG_FILE, log_stamp(), and LOGCHECK.

void _log_warning ( const char *  format,
  ... 
)

Definition at line 102 of file logger.cc.

References FLUSHIT, LOG_FILE, log_stamp(), and LOGCHECK.

void _print_backtrace ( FILE *  file  ) 

Definition at line 153 of file logger.cc.

References ConfigManager::isDebugLogging().

void log_close (  ) 

Definition at line 66 of file logger.cc.

References LOG_FILE, and NULL.

Referenced by main().

void log_open ( char *  filename  ) 

Definition at line 56 of file logger.cc.

References LOG_FILE.

Referenced by main().

static void log_stamp ( const char *  type  )  [static]

Definition at line 75 of file logger.cc.

References LOG_FILE.

Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().


Variable Documentation

FILE* LOG_FILE = stderr

Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1