atobase 3.2.0
ATOMAS atobase
Types

Typedefs

typedef struct _ato_Log ato_Log
 The log object.
 
typedef bool() ato_logfunction(ato_Log *log, ato_eLoglevel loglevel, ato_eLogState logstate, const char *library, const char *module, const char *function, const char *format, va_list args)
 The signature for the logging function - see ato_log_setlogfn()
 

Enumerations

enum  ato_eLogMode { ATO_LOGTO_NULL = 0 , ATO_LOGTO_STDOUT , ATO_LOGTO_STDERR , ATO_LOGTO_FILE }
 Indicates whether logging to stdout, stderr, a file, or nothing. More...
 
enum  ato_eLogState { ATO_LOGSTATE_MSG = 0 , ATO_LOGSTATE_OPEN , ATO_LOGSTATE_CLOSE }
 Controls the state/type of logging - e.g. More...
 

Detailed Description

Enumeration Type Documentation

◆ ato_eLogMode

Indicates whether logging to stdout, stderr, a file, or nothing.

Enumerator
ATO_LOGTO_NULL 

Don't log.

ATO_LOGTO_STDOUT 

Log to stdout.

ATO_LOGTO_STDERR 

Log to stderr.

ATO_LOGTO_FILE 

Log to a file.

◆ ato_eLogState

Controls the state/type of logging - e.g.

header, trailer, or content. This controls level of indentation if used.

Enumerator
ATO_LOGSTATE_MSG 

Just log - usually called within a method.

ATO_LOGSTATE_OPEN 

Log a "header" entry and setup to indent - usually called at method start.

ATO_LOGSTATE_CLOSE 

Log a "trailer" entry and reduce indent - usually called at method end.