Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / unix / log.c @ ae80a2de

History | View | Annotate | Download (6.81 KB)

# Date Author Comment
e598853e 02/21/2015 06:32 PM Pavel Tvrdik

Add const to a param msg at functions log_msg, log_rl, die, bug and debug

4a591d4b 02/21/2015 06:31 PM Pavel Tvrdik

Replacing GNU old-style field designator extension

1123e707 10/02/2014 10:52 AM Ondrej Zajicek

Implements token bucket filter for rate limiting.

4e398e34 02/07/2014 12:09 PM Ondrej Zajicek

Workaround thread-unsafeness of cli_echo().

56027b5c 11/22/2013 08:58 PM Ondrej Zajicek

Minor fix in log_commit() w.r.t. changes in BFD branch.

1ec52253 11/19/2013 09:33 PM Ondrej Zajicek

BFD protocol, ready for release.

Supports OSPF and BGP and also statically configured sessions.

0e175f9f 10/05/2013 06:12 PM Ondrej Zajicek

Fixes some BFD bugs and makes logging thread-safe.

508d9360 07/25/2013 11:15 AM Ondrej Zajicek

Implements eval command and minor CLI cleanups.

Implemented eval command can be used to evaluate expressions.

The patch also documents echo command and allows to use log classes
instead of integer as a mask for echo.

0d1b3c4c 09/20/2010 11:01 AM Ondrej Zajicek

Changes print-like filter commands to use a log instead of a stderr.

And extends the log subsystem to better handle that.

44d4ab7a 04/07/2010 01:34 PM Ondrej Zajicek

Configurable syslog name.

Also fixes a bug in syslog initialization.

e81b440f 02/21/2010 01:34 PM Ondrej Zajicek

Fix configure to enable warnings and fix most of them.

c37e7851 02/02/2010 11:19 PM Ondrej Zajicek

Makes date/time formats configurable.

cf31112f 01/03/2010 11:17 AM Ondrej Zajicek

Implements MRTdump feature.

cb530392 02/26/2009 01:23 PM Ondrej Zajicek

Rate limit for most abundant log messages

e98bc2ea 06/05/2004 09:05 AM Martin Mares

Renamed log() to log_msg(), but still keeping the old name as a macro.
This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)

01b776e1 03/06/2001 01:40 PM Martin Mares

Fixed <time.h> vs. <sys/time.h> problems.

f9eb8f7e 06/19/2000 11:50 PM Martin Mares

If compiled with --enable-debug, don't even try to log to syslog unless
the user forces it in the config file.

5ddf4a58 06/09/2000 07:32 AM Martin Mares

During initialization, log to both syslog and stderr. When a configuration
file has been read and it doesn't specify any logging, log to syslog only
(if syslog is not available, then stderr).

725270cb 06/08/2000 12:37 PM Martin Mares

Fixes for the programmer's manual.

2e9b2421 06/07/2000 12:29 PM Martin Mares

Spelling fixes to progdoc.

73275d85 06/05/2000 12:49 PM Martin Mares

Documented all the sysdeps (only briefly, I admit).

Except for Filters, RIP and OSPF, the progdocs are complete.

2f5e5ff9 05/31/2000 10:28 PM Martin Mares

Before configuration file is read, log to both syslog and stderr.

5ff0a270 05/08/2000 10:31 PM Martin Mares

In non-debug mode, set default logging to syslog only, not stderr.

818ff1e2 05/08/2000 12:38 PM Martin Mares

When reporting a bug(), call abort() instead of exit(), so that we
can analyse the core.

f098e072 03/12/2000 10:53 PM Martin Mares

Fixed a bunch of FIXME's by removing them :)

f78056fb 12/06/1999 01:51 PM Martin Mares

Allow logging to stderr as well.

a0c37b45 12/06/1999 01:45 PM Martin Mares

Logging is now configurable. You can define multiple log outputs (to both
files and syslog) and assign lists of message categories to each of them.

34350a52 12/06/1999 12:34 PM Martin Mares

Implemented echoing of log messages to CLI connections. Just try `echo all'.

98e87c86 12/20/1998 02:24 PM Martin Mares

Finer grained logging levels:

#define L_DEBUG "\001" /* Debugging messages /
#define L_INFO "\002" /
Informational messages /
#define L_WARN "\003" /
Warnings /
#define L_ERR "\004" /
Errors /
#define L_AUTH "\005" /
Authorization failed etc. */...

9158ca99 11/16/1998 09:41 PM Martin Mares

Complain loudly if the logging buffer would overflow.

9556f225 06/17/1998 02:33 PM Martin Mares

debug() and log() use the new printf. Feel free to use new formatting
sequences for all output.

6032aa6a 05/03/1998 04:42 PM Martin Mares

Added new subdir for UNIX-dependent files.

Now contains only functions for logging, but it will change soon.