Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (7.13 KB)

# Date Author Comment
574b2324 12/07/2017 12:53 PM Ondrej Zajicek (work)

Timers: Fix TBF and some last remains

f047271c 12/07/2017 12:49 PM Ondrej Zajicek (work)

Timers: Parse and format functions for microsecond times

Date/time output (e.g. in logs, show commands) can use %f to specify
subsecond time. By default, millisecond precision is used in output.

525a88d8 05/09/2017 12:48 PM Ondrej Zajicek (work)

Merge branch 'master' into int-new

5d6dc930 05/09/2017 11:45 AM Ondrej Zajicek (work)

Some more autoconf cleanups

Replace integer type width detection with C99 fixed-width types.
Also remove some unused or obsolete code.

Thanks to Ruben Kerkhof for the patchset.

8860e991 11/08/2016 06:27 PM Ondrej Zajicek (work)

Merge branch 'master' into int-new

cc5b93f7 11/08/2016 04:04 PM Ondrej Zajicek (work)

Merge tag 'v1.6.2' into int-new

17fe57d8 11/01/2016 10:37 AM Ondrej Zajicek (work)

Log: Fix broken syslog name

BIRD passed string from configuration to openlog(), which kept it
internally. After reconfiguration the old string was freed, therefore
openlog had invalid copy.

Thanks to Chris Caputo for the original patch.

f0b822a8 07/11/2016 06:22 PM Ondrej Zajicek (work)

Log: Fix error handling of debug file open

Logging is not yet initialized, we have to use fprintf() here.

Thanks to Pavel Tvrdik for noticing and debugging it.

8f01879c 06/27/2016 01:07 PM Pavel TvrdĂ­k

cppcheck: fix va_end() functions

af678af0 05/12/2016 04:03 PM Ondrej Zajicek (work)

Merge remote-tracking branch 'origin/master' into int-new

8e433d6a 05/12/2016 01:49 PM Pavel Tvrdik

Prog Doc: Complete several missing parameters

0c6dfe52 05/10/2016 12:30 PM Jan Moskyto Matejka

Merge branch 'int-new' into int-new-merged

7152e5ef 05/10/2016 12:07 PM Jan Moskyto Matejka

Build system reworked to one global Makefile with includes and no nesting

Also removed the lib-dir merging with sysdep. Updated #include's
accordingly.

Fixed make doc on recent Debian together with moving generated doc into
objdir.

Moved Makefile.in into root dir...

c2106b67 02/11/2016 08:53 PM Ondrej Zajicek (work)

Unix: Fix bug in syslog name handling

Pointer to current_log_name has to be changed even if the name is the
same, because the old one will be invalid/freed after reconfiguration.

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.