summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
Commit message (Collapse)AuthorAgeFilesLines
* cleanup to prepare for releaseRainer Gerhards2008-01-281-0/+1
|
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-5/+6
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* fixed sync issue on shutdown process if need to persist pure memory queueRainer Gerhards2008-01-171-1/+1
| | | | to disk
* worked on threadingRainer Gerhards2008-01-171-1/+1
|
* implemented dynamic startup and shutdown of worker threads based on currentRainer Gerhards2008-01-161-0/+1
| | | | activity
* - implemented $MainMsgQueueDiscardMark == 0 --> disable Discard logicRainer Gerhards2008-01-141-0/+1
| | | | - implemented $MainMsgQueueSize == 0 --> no limit on queue size
* worker shutdown sequence enhanced to try different ways to shut down andRainer Gerhards2008-01-141-0/+1
| | | | | terminate workers if none helps (this protects against badly written output plugins which hold the queue for too long)
* support for reading back persistet queue information completedRainer Gerhards2008-01-131-1/+5
|
* partial ability to read a disk queue back in (not completed, but would likeRainer Gerhards2008-01-111-0/+2
| | | | to save source for the weekend)
* support for de-serializing strm objects addedRainer Gerhards2008-01-111-0/+1
|
* added function to de-serialize a property bag (untested as other code isRainer Gerhards2008-01-111-0/+1
| | | | yet missing)
* some cleanupRainer Gerhards2008-01-101-4/+4
|
* changed queue class to use stream classRainer Gerhards2008-01-091-1/+1
|
* implemented queue object method to set the file name prefixRainer Gerhards2008-01-091-0/+1
|
* - implemented new GetSize() handler for config filesRainer Gerhards2008-01-091-0/+1
| | | | - implemented $MainMsgQueueMaxFileSize configuration directive
* - MsgSetProperty() implementedRainer Gerhards2008-01-071-0/+9
| | | | | - defined a property class - implemented deserializer (needs some more work)
* implemented class type registryRainer Gerhards2008-01-071-0/+1
|
* implemented buffered read calls for the queue fileRainer Gerhards2008-01-071-0/+2
|
* queue is now a full object and handles threading by itselfRainer Gerhards2008-01-031-0/+1
|
* took TCPSend() apart and made it generic via function pointersRainer Gerhards2007-12-281-0/+4
|
* code cleanups thanks to Michael BieblRainer Gerhards2007-12-181-4/+0
| | | | ----------------------------------------------------------------------
* - implemented afterRun input module interface functionRainer Gerhards2007-12-171-0/+1
| | | | - implemented $klogSymbolsTwice config directive
* implemented $MarkMessagePeriod config directiveRainer Gerhards2007-12-171-0/+1
|
* moved thread termination code out to threads.cRainer Gerhards2007-12-171-0/+1
|
* changed license to GPLv3 (for what is to become rsyslog v3)Rainer Gerhards2007-12-141-0/+19
|
* - added an identifier to command handler table - need to identify whichRainer Gerhards2007-11-211-0/+1
| | | | | | | | | | command handler entries need to be removed when module is unloaded - added support so that linkedlist key can be used for owner handle - enhanced llExecFunc to support deletion of list elements (on behalf of user function being called, slight interface change) - enhanced linkedlist class so that list elements can now be deleted based on the key value they have - created entry point so that CfSysLine handlers are removed on modExit()
* split the function cvthname() for clarity. Also changed to using theRainer Gerhards2007-09-181-0/+3
| | | | rsRetVal status return system
* - changed part of the CStr interface so that better error tracking isRainer Gerhards2007-09-051-0/+2
| | | | | | | provided and the calling sequence is more intuitive (there were invalid calls based on a too-weired interface) - (hopefully) fixed some remaining bugs rooted in wrong use of the CStr class. These could lead to program abort.
* applied patches which will be released under 1.19.1, changed doc for 1.19.1v1-19-1Michael Meckelein2007-08-221-3/+5
| | | | release
* optimized select handling, after select polling cycle is now finished whenRainer Gerhards2007-08-081-0/+1
| | | | all active selectors are processed
* - I found out that we finally have problems with the (somewhat recursive)Rainer Gerhards2007-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | call to logerror() that many of the modules do. I have not tried it, but I think things will become wild when we compile without pthread support. Threading prevents full recursion, so we have not seen any bad effects so far. However, the problems that I experienced in ommysl (that caused me to re-structure startWorker()) are actually rooted in this issue. I first thought to fix it via a module interace, but I now came to the conclusion that it is not more effort and much cleaner to do an internal error buffering class. This is implemented in errbuf.c/h. - I just noticed that this is not actually an error buf, but the core of an input module for all internal messages. As such, I implement it now as iminternal.c/h. Of course, there is no input module interface yet designed, but that doesn't matter. Worst-case, I need to re-write the im, best case I can use the im (at least partly) to define the interface. - added a few functions to the linkedlist class - error messages during startup are now buffered - so we do no longer need to think about how emergency logging might work. Actually, these are logged to whatever is instatiated in the log file. This enhances the chance that we will be able to drop the error message somewhere it is seen.
* - added CODE_STD_FINALIZERparseSelectorAct to module-generation macrosRainer Gerhards2007-08-031-0/+1
| | | | | | - restructered rsyslogd startup - moved startWorker() to a more appropriate place - updated ommysql.c to fully support suspension/resumption by rule engine
* - some more code cleanupRainer Gerhards2007-08-011-0/+1
| | | | - enhanced cfsysline interface to disallow chaining of command handlers
* - got the basic code in place to create an in-memory list of cfsyslineRainer Gerhards2007-07-311-0/+3
| | | | handlers (omfile.c used as testing case) -- not yet in active code
* prepared cfsysline.c for integration into output modulesRainer Gerhards2007-07-311-2/+0
|
* added some more functions to linkedList classRainer Gerhards2007-07-311-0/+2
|
* added a generic linked list object (files linkedlist.h/c)Rainer Gerhards2007-07-311-0/+1
|
* moved code to open config file into separate function processConfFile()Rainer Gerhards2007-07-311-0/+1
|
* - added macro to abort a function and go to finalizerRainer Gerhards2007-07-311-1/+5
| | | | - added output of config file line number when a parsing error occured
* - added doGetInt() to cfsysline.c and adapted dynaFileChaceSize handler toRainer Gerhards2007-07-311-0/+3
| | | | use it
* - moved umask & file/dir creation mode parsing to cfsysline.cRainer Gerhards2007-07-311-0/+6
| | | | - added macro for easy and consistent check of iRet return value
* - added omsr object (objomsr.c, objomsr.h) - template request for outputRainer Gerhards2007-07-271-0/+1
| | | | | | modules - changed doAction() interface - templates and output string generation for doActon() is now fully
* - implemented needUDPSocket() interfaceRainer Gerhards2007-07-261-0/+3
| | | | | | | | - replaced (mis) use of f_prevcount in omfwd.c -> now data element in instance data is used for retry counting - removed f->f_type from syslogd.c, omfwd.c - removed f->f_file from omfwd.c, omfile.c - f->f_flags is gone away
* introduced getWriteFDForSelect() module APIRainer Gerhards2007-07-251-0/+1
|
* changed output modules to use a template-based code generation system forRainer Gerhards2007-07-251-1/+0
| | | | standard entry points (implemented via preprocessor)
* removed F_UNUSED and cleaned up action-disabling handlingRainer Gerhards2007-07-241-0/+1
|
* major task: made sure no selector_t is created for selector lines that canRainer Gerhards2007-07-241-0/+2
| | | | | not be successfully loaded. That forced me to change a lot of code, with potential for trouble.
* moved discard functionality to an output moduleRainer Gerhards2007-07-241-0/+2
|
* continued working on modularization; begun to create interface forRainer Gerhards2007-07-231-0/+8
| | | | | configuring actions selector lines; begun basic functionality for module initialization and loading built-in modules.
* fixed a very nasty bug in structure creation of struct filed (causedRainer Gerhards2007-07-231-1/+4
| | | | | omusrmsg to be defunct) - many thanks to maharaja for providing the right idea at the right time ;)