summaryrefslogtreecommitdiff
path: root/lib/common/Logging.h
Commit message (Collapse)AuthorAge
* Remove Windows limitation on Logging that showing PID was not possible.Chris Wilson2008-08-03
|
* Remove comma from last item in enum, to silence warnings from solaris cc.Chris Wilson2008-07-06
|
* Fix strerror include. Needed for gcc 4.3Martin Ebourne2008-05-29
|
* Add static Logging::GetNamedLevel() method to return a log level Chris Wilson2008-05-28
| | | | | specified by name as a string.
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Fix a bug where trying to log a variable called "line" would log the addressChris Wilson2008-03-30
| | | | | of the std::ostringstream instead (duh, I hate macros).
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Add support for logging just to syslog (not console) at a given Chris Wilson2008-03-01
| | | | | priority.
* Disable -P option and showing PID in Logging on Windows.Chris Wilson2008-02-22
|
* Add support for microsecond timestamps and PID logging on console logChris Wilson2008-01-31
| | | | | for daemons.
* Allow logging with microsecond timestamps.Chris Wilson2007-12-15
|
* Enable TRACE logging in release builds, but make it really cheapChris Wilson2007-12-04
| | | | | when disabled.
* Fix double backslashesChris Wilson2007-10-08
|
* Revert to decimal properly, and also after logging an Object ID.Chris Wilson2007-10-08
|
* Revert from hex to decimal default format after logging an account number.Chris Wilson2007-10-08
|
* Format account number properly (8 hex digits).Chris Wilson2007-09-01
|
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Keep a copy of the program name, in case the original goes away, whichChris Wilson2007-04-28
| | | | | causes syslog() to write nonsense for the program name. (refs #3)
* Add options to log timestamps, and a custom tag, with each message toChris Wilson2007-04-22
| | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3)
* Win32 compile fixChris Wilson2007-03-05
| | | | | (refs #3, merges [1306])
* Automatically initialise logging at startup, with a static object, to logChris Wilson2007-01-16
| | | | | | | | to console and syslog. All logging objects automatically register themselves with the global logging system. (refs #3)
* Add a new logging level, NOTICE, between INFO and WARNING (justification:Chris Wilson2007-01-15
| | | | | | | | | | we need two levels of output for LogAllFileAccess, neither of which are warnings, one is very verbose, but must not be compiled out like TRACE). Make Loggers default to logging everything. Make the global log level filter work. (refs #3)
* * Rename Loggers class to Logging, which looks nicer.Chris Wilson2006-12-16
| | | | | | | | | | * Fix type of "line" argument to loggers to int rather than std::string to match __LINE__ * Define necessary static objects * Remove global condition on logging for now (refs #3)
* Initial implementation of the logging framework.Chris Wilson2006-12-16