log
[utilities]


Classes

struct  axis2_log_ops
 Axis2 log ops struct. More...
struct  axis2_log
 Axis2 Log struct. More...

Defines

#define AXIS2_LOG_FREE(allocator, log)   ((log->ops)->free(allocator, log))
#define AXIS2_LOG_WRITE(log, buffer, level)   ((log)->ops->write(log, buffer, level,AXIS2_LOG_SI))
#define AXIS2_LOG_DEBUG   axis2_log_impl_log_debug
#define AXIS2_LOG_INFO   axis2_log_impl_log_info
#define AXIS2_LOG_WARNING   axis2_log_impl_log_warning
#define AXIS2_LOG_ERROR   axis2_log_impl_log_error
#define AXIS2_LOG_CRITICAL   axis2_log_impl_log_critical
#define AXIS2_LOG_TRACE   axis2_log_impl_log_trace
#define AXIS2_LEN_VALUE   6000

Typedefs

typedef enum axis2_log_levels axis2_log_levels_t
 Axis2 log levels.

Enumerations

enum  axis2_log_levels {
  AXIS2_LOG_LEVEL_CRITICAL = 0, AXIS2_LOG_LEVEL_ERROR, AXIS2_LOG_LEVEL_WARNING, AXIS2_LOG_LEVEL_INFO,
  AXIS2_LOG_LEVEL_DEBUG, AXIS2_LOG_LEVEL_TRACE
}
 Axis2 log levels. More...

Functions

AXIS2_EXTERN void axis2_log_impl_log_critical (axis2_log_t *log, const axis2_char_t *filename, const int linenumber, const axis2_char_t *format,...)
AXIS2_EXTERN void axis2_log_impl_log_error (axis2_log_t *log, const axis2_char_t *filename, const int linenumber, const axis2_char_t *format,...)
AXIS2_EXTERN void axis2_log_impl_log_warning (axis2_log_t *log, const axis2_char_t *filename, const int linenumber, const axis2_char_t *format,...)
AXIS2_EXTERN void axis2_log_impl_log_info (axis2_log_t *log, const axis2_char_t *format,...)
AXIS2_EXTERN void axis2_log_impl_log_debug (axis2_log_t *log, const axis2_char_t *filename, const int linenumber, const axis2_char_t *format,...)
AXIS2_EXTERN void axis2_log_impl_log_trace (axis2_log_t *log, const axis2_char_t *filename, const int linenumber, const axis2_char_t *format,...)
AXIS2_EXTERN axis2_log_taxis2_log_create (axis2_allocator_t *allocator, axis2_log_ops_t *ops, const axis2_char_t *stream_name)
AXIS2_EXTERN axis2_char_t * axis2_log_impl_get_time_str (void)
AXIS2_EXTERN axis2_log_taxis2_log_create_default (axis2_allocator_t *allocator)

Enumeration Type Documentation

enum axis2_log_levels

Axis2 log levels.

Enumerator:
AXIS2_LOG_LEVEL_CRITICAL  Critical level, logs only critical errors
AXIS2_LOG_LEVEL_ERROR  Error level, logs only errors
AXIS2_LOG_LEVEL_WARNING  Warning level, logs only warnings
AXIS2_LOG_LEVEL_INFO  Info level, logs information
AXIS2_LOG_LEVEL_DEBUG  Debug level, logs everything
AXIS2_LOG_LEVEL_TRACE  Trace level, Enable with compiler time option AXIS2_TRACE


Function Documentation

AXIS2_EXTERN axis2_log_t* axis2_log_create ( axis2_allocator_t allocator,
axis2_log_ops_t ops,
const axis2_char_t *  stream_name 
)

Creates a log struct

Parameters:
allocator allocator to be used. Mandatory, cannot be NULL
Returns:
pointer to the newly created log struct


Generated on Wed Dec 20 20:35:01 2006 for Axis2/C by  doxygen 1.5.1