logog
logger optimized for games
const.hpp File Reference

Go to the source code of this file.

Macros

#define LOGOG_FORMATTER_MAX_LENGTH   ( 1024 * 16 )
 
#define LOGOG_DEFAULT_LOG_BUFFER_SIZE   ( 4 * 1024 * 1024 )
 
#define LOGOG_TIME_STRING_MAX   256
 
#define LOGOG_TIME_FORMAT_MAX   128
 
#define LOGOG_DEFAULT_TIME_FORMAT   "%c"
 
#define LOGOG_LEVEL_NONE   0
 [Level Constants] More...
 
#define LOGOG_LEVEL_EMERGENCY   8
 
#define LOGOG_LEVEL_ALERT   16
 
#define LOGOG_LEVEL_CRITICAL   24
 
#define LOGOG_LEVEL_ERROR   32
 
#define LOGOG_LEVEL_WARN   40
 
#define LOGOG_LEVEL_WARN1   48
 
#define LOGOG_LEVEL_WARN2   56
 
#define LOGOG_LEVEL_WARN3   64
 
#define LOGOG_LEVEL_INFO   72
 
#define LOGOG_LEVEL_DEBUG   80
 
#define LOGOG_LEVEL_ALL   88
 
#define LOGOG_LEVEL_TYPE   int
 [Level Constants] More...
 
#define LOGOG_LEVEL   LOGOG_LEVEL_DEBUG
 

Typedefs

typedef int TOPIC_FLAGS
 [Topic Bits] More...
 

Enumerations

enum  TopicBitsType {
  TOPIC_LEVEL_FLAG = 0x01, TOPIC_LINE_NUMBER_FLAG = 0x02, TOPIC_FILE_NAME_FLAG = 0x04, TOPIC_GROUP_FLAG = 0x08,
  TOPIC_CATEGORY_FLAG = 0x10, TOPIC_MESSAGE_FLAG = 0x20, TOPIC_TIMESTAMP_FLAG = 0x40, TOPIC_ALL = 0x7f
}
 [Topic Bits] More...
 
enum  TopicOffsetType {
  TOPIC_LEVEL = 0, TOPIC_LINE_NUMBER = 1, TOPIC_INT_COUNT = 2, TOPIC_FILE_NAME = 0,
  TOPIC_GROUP = 1, TOPIC_CATEGORY = 2, TOPIC_MESSAGE = 3, TOPIC_STRING_COUNT = 4
}
 [Topic Offsets] More...
 

Detailed Description

Constants.

Macro Definition Documentation

#define LOGOG_DEFAULT_LOG_BUFFER_SIZE   ( 4 * 1024 * 1024 )

The default size of a RingBuffer object for buffering outputs.

#define LOGOG_DEFAULT_TIME_FORMAT   "%c"

The default format for time output.

See also
Formatter::SetTimeOfDayFormat
#define LOGOG_FORMATTER_MAX_LENGTH   ( 1024 * 16 )

The maximum length of a single line that a formatter may output, in LOGOG_CHAR units.

#define LOGOG_TIME_FORMAT_MAX   128

The maximum length of a char string representing a formatter for time.

See also
TimeStamp
#define LOGOG_TIME_STRING_MAX   256

The maximum length of a char string containing a text representation of time.

See also
TimeStamp

Typedef Documentation

typedef int TOPIC_FLAGS

[Topic Bits]

Enumeration Type Documentation

[Topic Offsets]

Offsets within the m_vIntProps and m_vStringProps arrays for this topic.

Enumerator
TOPIC_LEVEL 
TOPIC_LINE_NUMBER 
TOPIC_INT_COUNT 

This must be the number of integer fields.

TOPIC_FILE_NAME 
TOPIC_GROUP 
TOPIC_CATEGORY 
TOPIC_MESSAGE 
TOPIC_STRING_COUNT 

This must be the number of string fields for this topic.