Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

loghandler.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <values.h>
#include "loghandler.h"

Defines

#define MAX_LINE_LEN   512

Functions

aw_loghandler_t * aw_create_loghandler (aw_logger_t *logger, const byte_t *desc, int32_t loglevel, const byte_t *format, u_int32_t max_line_len, u_int32_t tasklet, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *aware_logger)
 Create a log handler.

void aw_free_loghandler (aw_loghandler_t *lh)
 Free handler and all associated resources.

aw_handler_t * aw_wire_loghandler (aw_wire_mkhandler_args_t *args)
 Create a loghandler using "wire". See header doc for keyword documentation.


Define Documentation

#define MAX_LINE_LEN   512
 


Function Documentation

aw_loghandler_t* aw_create_loghandler (  aw_logger_t *  logger,
const byte_t *  desc,
int32_t  loglevel,
const byte_t *  format,
u_int32_t  max_line_len,
u_int32_t  tasklet,
int32_t(*  regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
int32_t(*  regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index),
const aw_alarm_sched_t *  sched,
aw_logger_t *  aware_logger
) 
 

Create a log handler.

aw_create_loghandler

Parameters:
logger Logger object
desc Optional Description string
loglevel The log level to do the logging
format Event format string, may be NULL
max_line_len Size of max line, may be 0 for default
tasklet If non-zero, run as tasklet
regevent Function pointer for event registration
regmaskevent Function pointer for event mask registration
sched Run schedule
aware_logger Aware logger object
Returns:
Handler object

void aw_free_loghandler (  aw_loghandler_t *  h  ) 
 

Free handler and all associated resources.

Parameters:
h The handler

aw_handler_t* aw_wire_loghandler (  aw_wire_mkhandler_args_t *  args  ) 
 

Create a loghandler using "wire". See header doc for keyword documentation.

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)