glog/src
Andrei Polushin acc60d0c38
logsink: fix multiple issues with LogSink::ToString() (#852)
1. Initializing std::ostringstream with a string makes no sense, as the
   string becomes an initial value of an underlying buffer; seek-to-end
   is not performed, so the initial value gets completely overwritten by
   subsequent writing.

2. Flag `log_year_in_prefix` should be considered, as if formatting a
   regular logging message.

3. Writing a buffer to std::ostream is better expressed with write(s,n).
2022-08-13 12:21:25 +02:00
..
base renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT 2022-02-14 10:32:44 +01:00
glog log_file_header: add option to disable log file headers. (#850) 2022-08-13 11:10:00 +02:00
package_config_unittest/working_config cmake: require at least version 3.16 (fixes #705) 2021-12-09 19:01:27 +01:00
windows logsink: fix multiple issues with LogSink::ToString() (#852) 2022-08-13 12:21:25 +02:00
cleanup_immediately_unittest.cc added log cleaner tests and fixed paths 2021-10-29 22:45:55 +02:00
cleanup_with_absolute_prefix_unittest.cc LogCleaner: avoid scanning logs too frequently 2022-01-25 13:45:59 +01:00
cleanup_with_relative_prefix_unittest.cc LogCleaner: Fix relative paths and add a new test 2021-12-09 10:30:51 +01:00
config.h.cmake.in added emscripten support (#846) 2022-08-04 22:52:47 +02:00
demangle_unittest.cc ci: reworked windows builds 2021-12-06 19:00:41 +01:00
demangle_unittest.sh Add partial C++0x support and recognition of GCC function clone suffixes to 2011-02-07 14:43:05 +00:00
demangle_unittest.txt Add demangle support for ABI tags. (#416) 2019-01-07 15:30:23 +09:00
demangle.cc support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
demangle.h renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT 2022-02-14 10:32:44 +01:00
googletest.h Merge pull request #790 from git-hulk/feature/logs-to-stdout 2022-02-20 12:32:06 +01:00
logging_custom_prefix_unittest.cc SetLogger should delete previously set custom logger. (#853) 2022-08-13 12:20:33 +02:00
logging_custom_prefix_unittest.err restore the stream format after writing the log prefix (#731) 2021-11-05 22:29:36 +01:00
logging_striplog_test.sh Fix logging_striplog_test.sh in debug mode. Fixes issue 108. 2011-12-29 12:36:09 +00:00
logging_striptest2.cc Add license information for all source code. 2009-01-28 17:04:50 +00:00
logging_striptest10.cc Add license information for all source code. 2009-01-28 17:04:50 +00:00
logging_striptest_main.cc export OS_* defines (fixes #715) 2021-10-01 11:26:07 +02:00
logging_unittest.cc SetLogger should delete previously set custom logger. (#853) 2022-08-13 12:20:33 +02:00
logging_unittest.err restore the stream format after writing the log prefix (#731) 2021-11-05 22:29:36 +01:00
logging_unittest.out Add logtostdout and colorlogtostdout flags for logging to stdout 2022-02-19 16:13:59 +01:00
logging.cc logsink: fix multiple issues with LogSink::ToString() (#852) 2022-08-13 12:21:25 +02:00
mock-log_unittest.cc simplify flags export 2022-02-13 13:04:24 +01:00
mock-log.h Added an API to get GMT offset from LogMessageTime 2021-12-09 10:26:47 +01:00
raw_logging.cc added emscripten support (#846) 2022-08-04 22:52:47 +02:00
signalhandler_unittest.cc run clang-tidy 2021-12-15 12:04:34 +01:00
signalhandler_unittest.sh Fix Mac test failure 2013-02-01 05:46:37 +00:00
signalhandler.cc support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
stacktrace_generic-inl.h run clang-tidy 2021-12-15 12:04:34 +01:00
stacktrace_libunwind-inl.h run clang-tidy 2021-12-15 12:04:34 +01:00
stacktrace_powerpc-inl.h run clang-tidy 2021-12-15 12:04:34 +01:00
stacktrace_unittest.cc support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
stacktrace_unwind-inl.h added emscripten support (#846) 2022-08-04 22:52:47 +02:00
stacktrace_windows-inl.h eliminate warnings 2021-07-22 22:52:22 +02:00
stacktrace_x86-inl.h support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
stacktrace.h renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT 2022-02-14 10:32:44 +01:00
stl_logging_unittest.cc export OS_* defines (fixes #715) 2021-10-01 11:26:07 +02:00
symbolize_unittest.cc support ndk r25 (#844) 2022-08-01 10:46:35 +02:00
symbolize.cc added emscripten support (#846) 2022-08-04 22:52:47 +02:00
symbolize.h renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT 2022-02-14 10:32:44 +01:00
utilities_unittest.cc export OS_* defines (fixes #715) 2021-10-01 11:26:07 +02:00
utilities.cc ci: reworked windows builds 2021-12-06 19:00:41 +01:00
utilities.h added emscripten support (#846) 2022-08-04 22:52:47 +02:00
vlog_is_on.cc renamed GOOGLE_GLOG_DLL_DECL to GLOG_EXPORT 2022-02-14 10:32:44 +01:00