Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Allow getting the standard Console and Syslog loggers. Add a Guard class | Chris Wilson | 2012-11-27 |
| | | | | | that can be used to protect against permanent changes to their log levels. | ||
* | Fix duplicate tagging of housekeeping messages. | Chris Wilson | 2012-11-17 |
| | |||
* | BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the right | Chris Wilson | 2012-11-07 |
| | | | | | of the decimal point are padded properly. | ||
* | Convert FORMAT_MICROSECONDS into a global utility macro. | Chris Wilson | 2012-11-06 |
| | |||
* | Allow hiding specific exceptions to keep test output cleaner. | Chris Wilson | 2012-04-28 |
| | |||
* | Allow overriding Logging::Guard to dump stack backtraces as well. | Chris Wilson | 2012-01-23 |
| | |||
* | Remove unnecessary GetNativeErrorMessage(), add BOX_LOG_SOCKET_ERROR macro. | Chris Wilson | 2012-01-22 |
| | |||
* | Add some macros for Windows specific error logging. | Chris Wilson | 2011-03-27 |
| | |||
* | Add some more logging and exception macros. Refactor to reduce nesting | Chris Wilson | 2011-01-12 |
| | | | | | depth and increase modularity. | ||
* | Add a macro for logging timespec structures. (merges [2744]) | Chris Wilson | 2011-01-08 |
| | |||
* | Add a new exception macro for throwing exceptions that are related to a | Chris Wilson | 2010-03-18 |
| | | | | | file but not system errors. | ||
* | Rename LOG_AND_THROW_ERROR macro to THROW_SYS_ERROR for consistency and | Chris Wilson | 2010-02-22 |
| | | | | | brevity. Add THROW_SYS_FILE_ERROR which adds a filename to the message. | ||
* | Log more detailed info about backup comparison failures, for debugging. | Chris Wilson | 2010-02-10 |
| | | | | | | Enable -V option in bbackupquery, and document that -q, -v, -V and -W<level> are allowed in the command-line help. | ||
* | Suppress exception warnings when they are expected during a test. | Chris Wilson | 2009-07-05 |
| | |||
* | Add ability to specify a named log facility for syslog loggins, | Chris Wilson | 2009-03-24 |
| | | | | | requested by Kenny Millington. | ||
* | Add a function to return a native error message as a string. | Chris Wilson | 2008-12-30 |
| | |||
* | Add BOX_LOG_NATIVE_ERROR and BOX_LOG_NATIVE_WARNING macros, which call | Chris Wilson | 2008-12-05 |
| | | | | | | | | | BOX_LOG_SYS_* or BOX_LOG_WIN_* depending on platform, as this is a common reason for #ifdefs elsewhere in the code. Add BOX_LOG_SOCKET_ERROR macro to log socket errors with the type, name and port of the socket that suffered the error. | ||
* | Compile fix and log the error number recorded by winerrno, not | Chris Wilson | 2008-11-30 |
| | | | | | the "last" error, whatever that was. | ||
* | Add file logger class. | Chris Wilson | 2008-09-26 |
| | |||
* | Unify program name and console logging tags. | Chris Wilson | 2008-09-13 |
| | | | | | | Add a new class, Logging::Tagger, which can be used to temporarily add information to the program name, such as the client ID in bbstored. | ||
* | Remove Windows limitation on Logging that showing PID was not possible. | Chris Wilson | 2008-08-03 |
| | |||
* | Remove comma from last item in enum, to silence warnings from solaris cc. | Chris Wilson | 2008-07-06 |
| | |||
* | Fix strerror include. Needed for gcc 4.3 | Martin Ebourne | 2008-05-29 |
| | |||
* | Add static Logging::GetNamedLevel() method to return a log level | Chris Wilson | 2008-05-28 |
| | | | | | specified by name as a string. | ||
* | Undo mangling by tailor | Chris Wilson | 2008-04-04 |
| | |||
* | Tailorization | Chris Wilson | 2008-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 address | Chris Wilson | 2008-03-30 |
| | | | | | of the std::ostringstream instead (duh, I hate macros). | ||
* | Replace all remaining use of TRACEx() macros with logging framework. | Chris Wilson | 2008-03-29 |
| | | | | | Remove the old TRACEx macros to catch any remaining uses. | ||
* | Improve logging with macros that consistently output strerror(errno) and | Chris Wilson | 2008-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 Wilson | 2008-03-01 |
| | | | | | priority. | ||
* | Disable -P option and showing PID in Logging on Windows. | Chris Wilson | 2008-02-22 |
| | |||
* | Add support for microsecond timestamps and PID logging on console log | Chris Wilson | 2008-01-31 |
| | | | | | for daemons. | ||
* | Allow logging with microsecond timestamps. | Chris Wilson | 2007-12-15 |
| | |||
* | Enable TRACE logging in release builds, but make it really cheap | Chris Wilson | 2007-12-04 |
| | | | | | when disabled. | ||
* | Fix double backslashes | Chris Wilson | 2007-10-08 |
| | |||
* | Revert to decimal properly, and also after logging an Object ID. | Chris Wilson | 2007-10-08 |
| | |||
* | Revert from hex to decimal default format after logging an account number. | Chris Wilson | 2007-10-08 |
| | |||
* | Format account number properly (8 hex digits). | Chris Wilson | 2007-09-01 |
| | |||
* | Replace almost all calls to syslog() with logging framework. (refs #3) | Chris Wilson | 2007-07-31 |
| | |||
* | Keep a copy of the program name, in case the original goes away, which | Chris Wilson | 2007-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 to | Chris Wilson | 2007-04-22 |
| | | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3) | ||
* | Win32 compile fix | Chris Wilson | 2007-03-05 |
| | | | | | (refs #3, merges [1306]) | ||
* | Automatically initialise logging at startup, with a static object, to log | Chris Wilson | 2007-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 Wilson | 2007-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 Wilson | 2006-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 Wilson | 2006-12-16 |