xbmc
Classes | Macros | Functions
NptLogging.cpp File Reference

Implementation file for logging. More...

#include <stdarg.h>
#include "NptLogging.h"
#include "NptList.h"
#include "NptStreams.h"
#include "NptSockets.h"
#include "NptUtils.h"
#include "NptFile.h"
#include "NptSystem.h"
#include "NptConsole.h"
#include "NptDebug.h"
Include dependency graph for NptLogging.cpp:

Classes

class  NPT_LogConsoleHandler
 
class  NPT_LogFileHandler
 
class  NPT_LogTcpHandler
 
class  NPT_LogUdpHandler
 
class  NPT_LogNullHandler
 
class  NPT_LogCustomHandler
 
class  NPT_LogManagerAutoDisabler
 
class  NPT_LogManagerAutoLocker
 

Macros

#define NPT_LOG_HEAP_BUFFER_INCREMENT   4096
 
#define NPT_LOG_STACK_BUFFER_MAX_SIZE   512
 
#define NPT_LOG_HEAP_BUFFER_MAX_SIZE   65536
 
#define NPT_CONFIG_LOG_CONFIG_ENV   "NEPTUNE_LOG_CONFIG"
 
#define NPT_CONFIG_DEFAULT_LOG_CONFIG_SOURCE   "file:neptune-logging.properties"
 
#define NPT_CONFIG_DEFAULT_LOG_LEVEL   NPT_LOG_LEVEL_OFF
 
#define NPT_LOG_ROOT_DEFAULT_HANDLER   "ConsoleHandler"
 
#define NPT_CONFIG_DEFAULT_LOG_FILE_HANDLER_FILENAME   "_neptune.log"
 
#define NPT_LOG_TCP_HANDLER_DEFAULT_PORT   7723
 
#define NPT_LOG_TCP_HANDLER_DEFAULT_CONNECT_TIMEOUT   5000 /* 5 seconds */
 
#define NPT_LOG_UDP_HANDLER_DEFAULT_PORT   7724
 
#define NPT_LOG_CONSOLE_HANDLER_DEFAULT_COLOR_MODE   true
 
#define NPT_CONFIG_DEFAULT_LOG_CONSOLE_HANDLER_OUTPUTS   OUTPUT_TO_DEBUG
 
#define NPT_LOG_FILE_HANDLER_MIN_RECYCLE_SIZE   1000000
 
#define NPT_LOG_FORMAT_FILTER_NO_SOURCE   1
 
#define NPT_LOG_FORMAT_FILTER_NO_TIMESTAMP   2
 
#define NPT_LOG_FORMAT_FILTER_NO_FUNCTION_NAME   4
 
#define NPT_LOG_FORMAT_FILTER_NO_LOGGER_NAME   8
 
#define NPT_LOG_FORMAT_FILTER_NO_SOURCEPATH   16
 
#define NPT_LOG_FORMAT_FILTER_NO_THREAD_ID   32
 

Functions

NPT_Result NPT_GetSystemLogConfig (NPT_String &)
 

Detailed Description

Implementation file for logging.