52#define LOG_FORMAT_DEFAULT "%c %%n [%%l]: %%m"
55typedef struct LogInterface LogInterface;
109 ObjectInterface objectInterface;
118 void (*
debug)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
127 void (*
error)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
136 void (*
fatal)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
153 void (*
info)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
172 Log *(*initWithName)(
Log *self,
const char *name);
184 void (*log)(
const Log *self,
LogLevel level,
const char *fmt, va_list args);
192 Log *(*sharedInstance)(void);
199 void (*
trace)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
206 void (*
warn)(
const Log *self,
const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
static void trace(const Log *self, const char *fmt,...)
static void flush(const Log *self)
static void warn(const Log *self, const char *fmt,...)
static void fatal(const Log *self, const char *fmt,...)
static void error(const Log *self, const char *fmt,...)
static void info(const Log *self, const char *fmt,...)
static void debug(const Log *self, const char *fmt,...)
LogLevel
Every Log has a threshold for generating messages.
Object is the root Class of The Objectively Class hierarchy.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
A Log4J-inspired log appender.
const char * format
The format string, defaults to LOG_FORMAT_DEFAULT. This string is post-processed after date substitut...
Class * _Log(void)
The Log archetype.
Object object
The superclass.
LogInterface * interface
The interface.
FILE * file
The file descriptor (defaults to stdout).
LogLevel level
The LogLevel of this Log.
char * name
The name of this Log.
Object is the root Class of The Objectively Class hierarchy.