|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <Log.h>
Properties | |
| FILE * | file |
The file descriptor (defaults to stdout). | |
| 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: | |
| LogLevel | level |
| The LogLevel of this Log. | |
| char * | name |
| The name of this Log. | |
| Object | object |
| The superclass. | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. | |
| unsigned int | magic |
| A header to allow introspection of Object types. | |
Methods | |
| Class * | _Log (void) |
| The Log archetype. | |
| void | debug (const Log *self, const char *fmt,...) |
| Log a debug message. | |
| void | error (const Log *self, const char *fmt,...) |
| Log an error message. | |
| void | fatal (const Log *self, const char *fmt,...) |
| Log a fatal message. | |
| void | flush (const Log *self) |
| Flushes and pending output to this Log's file. | |
| void | info (const Log *self, const char *fmt,...) |
| Log an info message. | |
| Log * | init (Log *self) |
| Initializes this Log. | |
| Log * | initWithName (Log *self, const char *name) |
| Initializes this Log with the specified name. | |
| void | log (const Log *self, LogLevel level, const char *fmt, va_list args) |
| Write a message to the Log. | |
| Log * | sharedInstance (void) |
| void | trace (const Log *self, const char *fmt,...) |
| Log a trace message. | |
| void | warn (const Log *self, const char *fmt,...) |
| Log a warn message. | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. | |
| bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. | |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. | |
Protected Attributes | |
| LogInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
| 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, | ||
| ... | |||
| ) |