The qDecoder Project

_Q_LOG Struct Reference

Structure for file log. More...


Data Fields

Q_LOCK_T qlock
char filepathfmt [PATH_MAX]
char filepath [PATH_MAX]
FILE * fp
int rotateinterval
int nextrotate
bool logflush
FILE * outfp
bool outflush
bool(* write )(Q_LOG *log, const char *str)
bool(* writef )(Q_LOG *log, const char *format,...)
bool(* duplicate )(Q_LOG *log, FILE *outfp, bool flush)
bool(* flush )(Q_LOG *log)
bool(* free )(Q_LOG *log)


Detailed Description

Structure for file log.


Field Documentation

Q_LOCK_T _Q_LOG::qlock

only used if compiled with --enable-threadsafe option

char _Q_LOG::filepathfmt[PATH_MAX]

file file naming format like /somepath/qdecoder-Ymd.log

char _Q_LOG::filepath[PATH_MAX]

generated system path of log file

FILE* _Q_LOG::fp

file pointer of logpath

int _Q_LOG::rotateinterval

log file will be rotate in this interval seconds

int _Q_LOG::nextrotate

next rotate universal time, seconds

bool _Q_LOG::logflush

flag for immediate flushing

FILE* _Q_LOG::outfp

stream pointer for duplication

bool _Q_LOG::outflush

flag for immediate flushing for duplicated stream


The documentation for this struct was generated from the following file:

Copyright (c) 2008 The qDecoder Project