summaryrefslogtreecommitdiffstats
path: root/common/eurephia_log.c
Commit message (Collapse)AuthorAgeFilesLines
* Added a simple log destination to string translater function.David Sommerseth2013-06-131-0/+22
| | | | | | | This is needed by the edb-pgsql driver to provide more understandable error reports in the administration code paths. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* common: Prepare for OpenVPN 2.3's new logging feature in plug-in API v3David Sommerseth2013-06-051-3/+33
| | | | | | | In OpenVPN v2.3 there's a new plug-in API with a more integrated log features. This patch prepares the logging infrastructure for this API. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated copyright datesDavid Sommerseth2012-10-081-1/+1
| | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* common: Rework eurephia_log() to include also veurephia_log()David Sommerseth2011-07-251-9/+6
| | | | | | | veurephia_log() is to eurephia_log() what vprintf() is to printf(), taking va_list and const char *fmt arguments directly. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated Copyright dates to include 2010David Sommerseth2010-07-301-1/+1
|
* Don't log source filename and line number if DEBUG is not enabledDavid Sommerseth2009-10-061-7/+11
|
* Added extra parameter to eurephia_log_init() to set log ident for syslogDavid Sommerseth2009-09-241-2/+3
|
* Added missing doxygen comments after the last eurephia_log() improvementsDavid Sommerseth2009-09-241-1/+5
| | | | Ref. commit: f2a4f0412bc1f7b9069ecbcce8f5599f46f757e0
* Improved file logging, providing source file and line number infoDavid Sommerseth2009-09-241-4/+8
| | | | | Also changed malloc_nullsafe() and free_nullsafe() to report directly which file:line which called the malloc/free function.
* Added missing header file and corrected doxygen errorsDavid Sommerseth2009-09-241-1/+3
|
* Rewritten the eurephia_log() to support syslog logging as wellDavid Sommerseth2009-09-241-34/+253
| | | | | | | | | | | | | | | | | | | | | | | | Also simplified the initialisation of the logging module. By calling the eurephia_log_init(eurephiaCTX *, char *dest, int loglevel) function, a log context will be setup inside the eurephiaCTX. To close the log file, eurephia_log_close(eurephiaCTX *) must be called. The destination string to eurephia_log_init() can be: - stdout: Log everything to stdout - stderr: Log everything to stderr - none: Do no logging at all - syslog:<facility> Log via syslog. <facility> can be: user, local[0-7], daemon or authpriv. - Filename All logging goes to the given filename. If the filename string is not recognised by any of the reserved words above, it will be handled as a filename.
* More comments in common/David Sommerseth2009-09-041-10/+15
|
* Added more comments to the common filesDavid Sommerseth2009-09-021-3/+23
|
* Made the licence explicit GPLv2 onlyDavid Sommerseth2009-03-261-1/+1
|
* Cleaned up the code a little bitDavid Sommerseth2009-03-261-1/+2
| | | | | Made sure we only include needed include files and checked that the copyright headers are equal and correct
* BUGFIX: Avoid core dump on eurephia_log(...) if eurephiaCTX is NULLDavid Sommerseth2008-11-301-1/+1
|
* Renamed eurephia_struct.h to eurephia_context.hDavid Sommerseth2008-11-271-1/+1
| | | | | | | | | | | | | Since this include file now only consists of eurephiaCTX definition, it was moved to the common/ directory and renamed. Moved the SESSION_* definitions out of this file and into plugin/eurephiadb_session.h where they belong. Moved the Posix MQ definitions into plugin/firewall/eurephiafw_struct.h where they belong. eurephia_context.h is now containing only context related things.
* Reorganised the source codeDavid Sommerseth2008-10-151-0/+77
Moved all OpenVPN plug-in related things into ./plugins, including firewall Moved all shared code into ./common and moved the generic part of the database files into ./database Updated all CMakeLists.txt files and created a new one for the root directory