22 Commits

Author SHA1 Message Date
Rainer Gerhards
188e4f39fd Merge branch 'master' into beta 2008-07-15 16:11:05 +02:00
Rainer Gerhards
19864adc47 bugfix: mark messages were not correctly written to text log files
the markmessageinterval was not correctly propagated to all places
where it was needed. This resulted in rsyslog using the default
(20 minutes) in some code pathes, what looked to the user like mark
messages were never written.
2008-07-15 14:50:17 +02:00
Rainer Gerhards
3f6c73a8b7 added (internal) error codes to error messages
Also added redirector to web description of error codes
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
2008-06-27 12:52:45 +02:00
Rainer Gerhards
60309004df completed better modularity of runtime
- added the ability to specify an error log function for the
  runtime
- removed dependency of core runtime on dirty.h

Note that it is "better" modularity, not perfect. There is still
work to do, but I think we can for the time being proceed with
other things.
2008-04-17 12:46:57 +02:00
Rainer Gerhards
d9b0c77d3e some more cleanup
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +02:00
Rainer Gerhards
545346e697 - changed modules.c calling conventions to be interface-based
- moved module loader from conf.c to module.c, where it belongs
- made the necessary plumbing to auto-load library modules
- upgraded debug system to include iRet in function exit message
- changed module interface so that instances need only to be supported by
    output plugins (if we actually need them for input plugins, we can
    always add it again...)
- milestone: first implementation of library modules (but do not get
    unloaded on exit/hup so far)
2008-03-05 10:30:06 +00:00
Rainer Gerhards
bc7d8ccebb - changed module interface to support querying obj interface (stage work)
- changed module interface version, as the interface change is quite large
2008-03-04 10:27:45 +00:00
Rainer Gerhards
4e7e3efc69 fixed issue left over from debuging :( 2008-02-01 17:50:05 +00:00
Rainer Gerhards
68efb41220 - some cleanup
- implemented management function for worker thread 0 in order to change
    queue workers dynamically -- stage work
2008-01-10 17:33:21 +00:00
Rainer Gerhards
28c44e9a7b - fixed a bug that caused a segfault on startup when no $WorkDir directive
was specified in rsyslog.conf
- fixed a bug that caused a segfault on queues with types other than "disk"
- removed the now longer needed thread TermSyncTool
2008-01-10 14:27:26 +00:00
Rainer Gerhards
2eb19201b3 - working on a potential race condition on the new input module interface.
See newsgroup posting for details on the issue:
    http://groups.google.com/group/comp.programming.threads/msg/330b9675f17
    a1ad6 I tried some mutex operations but came to the conclusion that
    this does not really help. So I have now switched to plain thread
    cancellation, which so far seems to be OK. Need more practical
    experience with other input modules to make a final decision. Thus I
    leave all code in and have just disabled the problematic code.
2007-12-20 08:54:51 +00:00
Rainer Gerhards
653ec62b23 - implemented afterRun input module interface function
- implemented $klogSymbolsTwice config directive
2007-12-17 14:34:22 +00:00
Rainer Gerhards
9088ee3389 begun imklog, replacing klogd.c (finally we get rid of it...) 2007-12-17 11:52:10 +00:00
Rainer Gerhards
3e2bee073b command $ResetConfigVariables implemented for immark.c 2007-12-17 09:47:11 +00:00
Rainer Gerhards
83c6a060be implemented $MarkMessagePeriod config directive 2007-12-17 09:42:03 +00:00
Rainer Gerhards
18dbfe70d8 moved thread termination code out to threads.c 2007-12-17 09:06:23 +00:00
Rainer Gerhards
0a8e339bfe tried to work-around zlib compile problem in immark.c on some platforms 2007-12-17 08:19:50 +00:00
Rainer Gerhards
e45bbf5c66 graceful termination now supported 2007-12-14 17:58:12 +00:00
Rainer Gerhards
6c0c26dc96 on the way to a real input module interface and threading class... 2007-12-14 16:51:34 +00:00
Rainer Gerhards
6a80d9ee50 - begun to create input module interface and macros
- changed module interface to include function to query type
2007-12-14 14:41:09 +00:00
Rainer Gerhards
004229dda6 changed license to GPLv3 (for what is to become rsyslog v3) 2007-12-14 11:21:57 +00:00
Rainer Gerhards
119573816d begin work on on immark, the first input module. In the long term this will
lead to a complete rewrite of the input system
2007-12-14 10:42:30 +00:00