logger.h File Reference

#include <stdio.h>

Go to the source code of this file.

Defines

#define LOG_FLUSH   1
#define log_info(format,...)
#define log_warning(format,...)
#define log_error(format,...)
#define log_js(format,...)
#define log_debug(format,...)
#define print_backtrace()

Functions

void log_open (char *filename)
void log_close ()
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=LOG_FILE)

Variables

FILE * LOG_FILE

Detailed Description

Definition in file logger.h.


Define Documentation

#define log_debug ( format,
...   ) 

Definition at line 71 of file logger.h.

Referenced by SQLStorage::_checkOverlappingAutoscans(), StringConverter::_convert(), SQLStorage::_purgeEmptyContainers(), SQLStorage::_recursiveRemove(), SQLStorage::_removeObjects(), ContentManager::_rescanDirectory(), ContentManager::addContainerChain(), SQLStorage::addObject(), ContentManager::addObject(), ContentManager::addRecursive(), CdsResourceManager::addResources(), Timer::addTimerSubscriber(), WebRequestHandler::addUpdateIDs(), SQLStorage::autoscanUpdateLM(), SQLStorage::browse(), Session::clearUpdateIDs(), FDIOHandler::close(), UpdateManager::containerChanged(), UpdateManager::containersChanged(), create_request_handler(), CacheObject::debug(), ConfigManager::dumpOptions(), SQLStorage::flushInsertBuffer(), ServeRequestHandler::get_info(), FileRequestHandler::get_info(), ConfigManager::getOption(), ContentManager::invalidateAddTask(), kill_proc(), main(), normalizePath(), Timer::notify(), WebRequestHandler::open(), ServeRequestHandler::open(), FileRequestHandler::open(), FDIOHandler::open(), web::remove::process(), web::containers::process(), web::auth::process(), web::add::process(), web::action::process(), ConnectionManagerService::process_action_request(), ContentDirectoryService::process_action_request(), ContentDirectoryService::process_subscription_request(), FallbackLayout::processCdsObject(), ProcessExecutor::ProcessExecutor(), SingletonManager::registerSingleton(), DBRHash< int >::remove(), AutoscanList::remove(), ContentManager::removeObject(), Timer::removeTimerSubscriber(), zmm::BaseStack< Object * >::resize(), zmm::BaseQueue< Object * >::resize(), CMAddFileTask::run(), run_simple_process(), ContentManager::setAutoscanDirectory(), UpdateManager::shutdown(), Timer::shutdown(), SingletonManager::shutdown(), Server::shutdown(), ContentManager::shutdown(), UpdateManager::staticThreadProc(), IOHandlerBufferHelper::staticThreadProc(), ContentDirectoryService::subscription_update(), UpdateManager::threadProc(), IOHandlerChainer::threadProc(), BufferedIOHandler::threadProc(), SessionManager::timerNotify(), PlayHook::trigger(), Timer::triggerWait(), ActionRequest::update(), SQLStorage::updateAutoscanDirectory(), SQLStorage::updateAutoscanPersistentList(), AutoscanList::updateLMinDB(), SQLStorage::updateObject(), ContentManager::updateObject(), ContentDirectoryService::upnp_action_Browse(), ConnectionManagerService::upnp_action_GetCurrentConnectionIDs(), ConnectionManagerService::upnp_action_GetCurrentConnectionInfo(), ConnectionManagerService::upnp_action_GetProtocolInfo(), ContentDirectoryService::upnp_action_GetSearchCapabilities(), ContentDirectoryService::upnp_action_GetSortCapabilities(), ContentDirectoryService::upnp_action_GetSystemUpdateID(), Server::upnp_actions(), Server::upnp_callback(), Server::upnp_init(), UpnpXML_RenderDeviceDescription(), ConfigManager::validate(), ContentManager::~ContentManager(), zmm::ObjectStack< Element >::~ObjectStack(), SessionManager::~SessionManager(), Timer::~Timer(), and TimerSubscriber::~TimerSubscriber().

#define log_error ( format,
...   ) 
#define LOG_FLUSH   1

Definition at line 43 of file logger.h.

#define log_info ( format,
...   ) 
#define log_js ( format,
...   ) 

Definition at line 70 of file logger.h.

#define log_warning ( format,
...   ) 
 
#define print_backtrace (  ) 

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 = LOG_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().


Variable Documentation

FILE* LOG_FILE

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