summaryrefslogtreecommitdiff
path: root/src/mongo/logger
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-1633-297/+693
| | | | Also update generators.
* SERVER-9358 Prevent logRotate twice in the same second from losing log dataSpencer T Brody2014-04-111-0/+14
|
* SERVER-5553 Remove a heap allocation from the log event encoder.Andy Schwerin2014-04-032-4/+5
| | | | | | The goal is to eventually have a logging path that is truly safe to use in a signal handler. This patch advances the cause by removing the heap allocation caused by returning a string in the date formatters.
* SERVER-3364 Label rest of client api with MONGO_CLIENT_APIRanjay Krishna2013-12-282-2/+4
| | | | | | build all the sharedclient programs using the new macro MONGO_CLIENT_API in mongo/client/export_macros.h Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
* SERVER-11028 new abortOnFailure property of log domainsEric Milkie2013-11-252-8/+30
|
* SERVER-11658 Consistently use Library targetAndrew Morrow2013-11-181-15/+15
|
* SERVER-10390 direct console output to WriteConsoleW instead of std::cout ↵Benety Goh2013-11-064-3/+273
| | | | under Windows
* SERVER-10885 Create new Console class to redirect tool logging to stderr ↵Shaun Verch2013-10-111-2/+2
| | | | instead of stdout
* SERVER-10606 fix labeled level to correctly output space after labelGreg Studer2013-08-261-0/+1
|
* SERVER-7965 Change default date format in logs to iso8601-local.Andy Schwerin2013-08-191-1/+1
|
* SERVER-8684 make codebase compatible with boost 1.5 and newermatt dannenberg2013-08-071-0/+5
|
* SERVER-7965 Make the timestamp format settable in servers.Andy Schwerin2013-07-262-1/+31
| | | | | | | | | | | | | From the command line or config file, --logTimestampFormat=(ctime|iso8601-utc|iso8601-local). The beginning of the Unix Epoch is formatted as follows in the three formats, assuming America/New_York for the time zone. ctime: Wed Dec 31 19:00:00.000 iso8601-utc: 1970-01-01T00:00:00.000Z iso8601-local: 1969-12-31T19:00:00.000+0500 The default remains the same as in prior versions, "ctime".
* SERVER-7965 Move date/time types and functions from bson/util/misc.h to ↵Andy Schwerin2013-07-242-5/+6
| | | | util/time_support.{h,cpp}.
* SERVER-7965 Construct MessageEventEphemeral with a time stamp; use that when ↵Andy Schwerin2013-07-244-7/+18
| | | | printing log messages.
* SERVER-7965 Introduce time formatting functions for ISO 8601 and Ctime; ↵Andy Schwerin2013-07-241-3/+1
| | | | eliminate curTimeString().
* SERVER-10314 Make logger format RamLog lines like console log lines.Andy Schwerin2013-07-241-3/+9
|
* SERVER-10316 Account for milliseconds component of date in RamLog::repeats.Andy Schwerin2013-07-241-3/+3
|
* SERVER-10172 Refactor RamLog to make it thread-safe.Andy Schwerin2013-07-122-50/+163
| | | | Also prevent accidental creation of duplicate ramlogs of the same name.
* SERVER-10084 Make LogstreamBuilder safe to use during static init; fix ↵Andrew Schwerin2013-07-101-8/+24
| | | | | | memory leak. Fixes mongo/logger/log_test unit test on OS X.
* SERVER-10084 New logging implementation.Andy Schwerin2013-07-0933-5/+2219
| | | | | | | | | | | | | | | | This change-set: * Introduces a new top-level directory, mongo/logger, containing most of the implementation of logging functionality formerly found in log.cpp/log.h. * Cleans up existing, unusual uses of the logging system that were not trivially compatible with the new implementation. * Replaces Logstream/Nulstream with a LogstreamBuilder object, whose destructor writes log messages. This new LogstreamBuilder is reentrant, unlike the old logging code, which was thread-safe but not reentrant. Additionally, std::endl is no longer required to terminate a log line. When a LogstreamBuilder goes out of scope, the log message gets committed. * Separates the log system into several components: a global LogManager, several LogDomains, various kinds of Appenders (e.g., SyslogAppender) and Encoders (for formatting messages). * Allows unit tests to capture and examine log output. This patch does _not_ introduce support for hierarchical log domains, or for enabling and disabling specific log domains when the server is running in a multi-threaded mode. This is future work.
* SERVER-10074 Clean up before and after rotatable_file_writer_test execution.Andy Schwerin2013-07-031-1/+19
|
* Fix unit test to handle explicit operator bool in C++11 modeAndrew Morrow2013-07-031-6/+6
|
* SERVER-10088 SERVER-10074 Add forgotten copyright message to ↵Andy Schwerin2013-07-031-0/+15
| | | | rotatable_file_writer_test.cpp.
* SERVER-10074 RotatableFileWriter type, introduce logger module.Andy Schwerin2013-07-034-0/+494