Commit Graph
22 Commits
Author SHA1 Message Date
Ben Pfaff b6eb6bc746 vlog: Add ability to log to an arbitrary file, and following related changes:
* New command-line options for configuring log files, hence:
  - Centralized vlog usage messages.
* New vlogconf action for reopening log files.
* New vlogconf support for specifying a target by pidfile.
2008-10-23 14:07:25 -07:00
Ben Pfaff 7014135d8b vlog: Avoid calling any function if nothing will be logged. 2008-10-23 11:09:02 -07:00
Ben Pfaff be0ea769dd Make the format of vlog messages user-configurable. 2008-10-23 11:08:23 -07:00
Ben Pfaff 95204b0bf0 Don't use designated array initializers in code compiled outside of Linux.
Needed for partner builds.
2008-09-04 13:53:27 -07:00
Ben Pfaff eb0341e711 Rename utility functions to avoid partner namespace conflicts. 2008-09-04 13:53:27 -07:00
Ben Pfaff 263aa64c49 Add support for extensions submodule. 2008-08-28 17:36:33 -07:00
Ben Pfaff 1a41889356 vlog: Implement rate-limiting. 2008-08-26 13:25:19 -07:00
Ben Pfaff c1d17df989 vlog: Simplify vlog() by using dynamic-string functions. 2008-08-26 13:25:17 -07:00
Ben Pfaff b3b28afb7b Use signal-based timekeeping functions throughout the source base. 2008-08-12 15:21:30 -07:00
Ben Pfaff f12a593617 Avert GCC false-positive warning. 2008-07-28 10:11:58 -07:00
Ben Pfaff 50acf79953 vlog: Reduce syslog level of VLL_EMER messages to LOG_ALERT.
The LOG_EMERG log level sprayed these messages across every xterm and
console in the system, which was excessive.
2008-07-23 17:04:24 -07:00
Ben Pfaff 42c89afbde vlog: Send multi-line log messages to syslog() one line at a time.
syslogd swallows new-lines, which makes multi-line messages otherwise
difficult to read.
2008-07-23 17:04:21 -07:00
Ben Pfaff f730dded18 Move Autoconf's macro definitions into config.h.
This makes "make" output slightly more readable.
2008-07-21 15:05:53 -07:00
Ben Pfaff 1b6df17a65 Make facility and level optional in -v, --verbose options.
This makes it easier to set a given module to maximum verbosity,
as is often useful for debugging.
2008-07-18 14:16:40 -07:00
Ben Pfaff 97d6fcbd4d By default, log to syslog also.
It seems that this should be useful for debugging post-mortems.  Also,
this ensures that the "current time is negative" log message appears in
syslog.  Otherwise, it won't ever, because we log it before the vlog
client has a chance to configure its log levels.
2008-07-18 13:24:16 -07:00
Ben Pfaff 792576de01 Log an error when the time is negative at vlog startup. 2008-07-18 13:24:16 -07:00
Ben Pfaff 21bcd54543 Include date and time in vlog messages. 2008-07-16 15:31:38 -07:00
Ben Pfaff c44bef2f6e Fix -v, --verbose options to userspace programs.
Now providing an argument to these options works as documented.
2008-07-01 10:51:47 -07:00
Ben Pfaff 0a0a1dbe4c Add vlog functions and macros for testing whether a module and level are enabled. 2008-04-04 16:20:54 -07:00
casado 3f0201adb5 Update copyright on all non-GPL files 2008-03-27 20:12:18 -07:00
Ben Pfaff 5875f5b634 Make vlog preserve errno.
This means that adding logging to code disturbs the program's state
as little as possible.  This is a precautionary measure, not in response
to any particular bug.
2008-03-27 17:50:33 -07:00
Martin Casado 468e00132f Initial import 2008-03-04 13:12:53 -08:00