Main Page | Modules | File List | Globals

lwl.h File Reference

Go to the source code of this file.

Defines

#define lwl_get_log_file(h)   lwl_get_default_log_file(h)
 Alias for lwl_get_default_log_file().


Typedefs

typedef _lwl_handle * lwlh_t
 LWL handle type.


Enumerations

enum  lwl_tag_t {
  LWL_TAG_DONE = 0, LWL_TAG_LEVEL, LWL_TAG_PREFIX, LWL_TAG_OPTIONS,
  LWL_TAG_FILE, LWL_TAG_FILE_EMERG, LWL_TAG_FILE_ALERT, LWL_TAG_FILE_CRIT,
  LWL_TAG_FILE_ERR, LWL_TAG_FILE_WARNING, LWL_TAG_FILE_NOTICE, LWL_TAG_FILE_INFO,
  LWL_TAG_FILE_DEBUG
}
 LWL Tags. More...

enum  lwl_option_t {
  LWL_OPT_NONE = 0, LWL_OPT_PERROR = 1, LWL_OPT_PID = 2, LWL_OPT_DATE = 4,
  LWL_OPT_TIME = 8, LWL_OPT_IP = 16, LWL_OPT_ADR = 32, LWL_OPT_PRIORITY = 64,
  LWL_OPT_PREFIX = 128, LWL_OPT_NO_FLUSH = 256, LWL_OPT_USE_LOCALE = 512
}
 LWL options. More...

enum  lwl_priority_t {
  LWL_PRI_EMERG = 0, LWL_PRI_ALERT = 1, LWL_PRI_CRIT = 2, LWL_PRI_ERR = 3,
  LWL_PRI_WARNING = 4, LWL_PRI_NOTICE = 5, LWL_PRI_INFO = 6, LWL_PRI_DEBUG = 7
}
 LWL priority. More...


Functions

lwlh_t lwl_alloc (void)
 Create a new LWL handle.

void lwl_free (lwlh_t HANDLE)
 Destroy a LWL handle.

void lwl_write_log (lwlh_t HANDLE, lwl_priority_t PRI, char *FORMAT,...)
 Log a message to the files associated to a LWL handle.

int lwl_set_attributes (lwlh_t HANDLE, lwl_tag_t TAGS,...)
 Modify the attributes of a LWL handle.

lwl_priority_t lwl_get_log_level (const lwlh_t HANDLE)
 Get the actual log level of a LWL handle.

FILE * lwl_get_default_log_file (const lwlh_t HANDLE)
 Get the actual default file where a LWL handle is logging into.

const char * lwl_get_hostname (lwlh_t HANDLE)
 Get the hostname of a LWL handle.


Generated on Wed Jan 5 16:54:39 2005 for LWL by doxygen 1.3.5