Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Log.h>
Properties | |
FILE * | file |
The file descriptor (defaults to stdout ). More... | |
const char * | format |
The format string, defaults to LOG_FORMAT_DEFAULT . This string is post-processed after date substitution is performed by strftime . The following additional tokens are supported: More... | |
LogLevel | level |
The LogLevel of this Log. More... | |
char * | name |
The name of this Log. More... | |
Object | object |
The superclass. More... | |
![]() | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
Class * | _Log (void) |
The Log archetype. More... | |
void | debug (const Log *self, const char *fmt,...) |
Log a debug message. More... | |
void | error (const Log *self, const char *fmt,...) |
Log an error message. More... | |
void | fatal (const Log *self, const char *fmt,...) |
Log a fatal message. More... | |
void | flush (const Log *self) |
Flushes and pending output to this Log's file. More... | |
void | info (const Log *self, const char *fmt,...) |
Log an info message. More... | |
Log * | init (Log *self) |
Initializes this Log. More... | |
Log * | initWithName (Log *self, const char *name) |
Initializes this Log with the specified name. More... | |
void | log (const Log *self, LogLevel level, const char *fmt, va_list args) |
Write a message to the Log. More... | |
Log * | sharedInstance (void) |
void | trace (const Log *self, const char *fmt,...) |
Log a trace message. More... | |
void | warn (const Log *self, const char *fmt,...) |
Log a warn message. More... | |
![]() | |
Class * | _Object (void) |
The Object archetype. More... | |
Object * | copy (const Object *self) |
Creates a shallow copy of this Object. More... | |
void | dealloc (Object *self) |
Frees all resources held by this Object. More... | |
String * | description (const Object *self) |
int | hash (const Object *self) |
Object * | init (Object *self) |
Initializes this Object. More... | |
_Bool | isEqual (const Object *self, const Object *other) |
Tests equality of the other Object. More... | |
_Bool | isKindOfClass (const Object *self, const Class *clazz) |
Tests for Class hierarchy membership. More... | |
Protected Attributes | |
LogInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
FILE* Log::file |
const char* Log::format |
Class * _Log | ( | void | ) |
The Log archetype.
Definition at line 285 of file Log.c.
void debug | ( | const Log * | self, |
const char * | fmt, | ||
... | |||
) |
void(*) void error(const Log *self, const char *fmt,...) | ( | const Log * | self, |
const char * | fmt, | ||
... | |||
) |
void(*) void fatal(const Log *self, const char *fmt,...) | ( | const Log * | self, |
const char * | fmt, | ||
... | |||
) |
void info | ( | const Log * | self, |
const char * | fmt, | ||
... | |||
) |
Initializes this Log with the specified name.
NULL
on error. Log * sharedInstance | ( | void | ) |
void trace | ( | const Log * | self, |
const char * | fmt, | ||
... | |||
) |