- 02 Nov, 2019 2 commits
-
-
Vyacheslav Yurkov authored
When UNWIND_LIBRARY is used directly as a public dependency then absolute path is stored in cmake config file. This is an issue when glog is used as part of an SDK, which was built somewhere else. When SDK is installed on developer's machine, cmake config contains a full path to non-existent location. The solution is to find libunwind during configure stage and store target name as a dependency, not a full path. Cmake module looks for libunwind and libunwind-PLAT, where PLAT is one of supported platforms. Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
-
Sergiu Deitsch authored
removed executable flag from .cmake file
-
- 01 Nov, 2019 6 commits
-
-
Sergiu Deitsch authored
-
Sergiu Deitsch authored
Support pkg-config
-
loop0day authored
-
Sergiu Deitsch authored
Revert "Added fixed log name support"
-
Marco authored
* Add support for automatic removal of old logs GetOverdueLogNames(string log_directory, int days) will check all filenames under log_directory, and return a list of files whose last modified time is over the given days (calculated using difftime()). So that we can easily for unlink all files stored in the returned vector. * Replaced the lines that require C++11 * embed dirent.h in project * Add support for automatic removal of old logs In this commit, at the end of LogFileObject::Write, it will perform clean up for old logs. It uses GetLoggingDirectories() and for each file in each directory, it will check if a file is a log file produced by glog. If it is, and it is last modified 3 days ago, then it will unlink() this file. (It will only remove the project's own log files, it won't remove the logs from other projects.) Currently it is hardcoded to 3 days, I'll see if this can be implemented in a more flexible manner. * Implement old log cleaner The log cleaner can be enabled and disabled at any given time. By default, the log cleaner is disabled. For example, this will enable the log cleaner and delete the log files whose last modified time is >= x days google::EnableLogCleaner(x days); To disable it, simply call google::DisableLogCleaner(); Please note that it will only clean up the logs produced for its own project, the log files from other project will be untouched. * logging: log_cleaner: Use blackslash for windows dir delim * logging: log_cleaner: remove the range-based loops Also replaced the hardcoded overdue days with the correct variable. * Add Marco Wang to AUTHORS and CONTRIBUTORS * logging: log_cleaner: Remove redundant filename stripping Previously the full path to a file is passed into IsGlogLog(), and then std::string::erase() is used to get the filename part. If a directory name contains '.', then this function will be unreliable. Now only the filename it self is passed into IsGlogLog(), so this problem will be eradicated. * logging: log_cleaner: improve readability * Add google::EnableLogCleaner() to windows logging.h * logging: log_cleaner: Remove perror message * logging: IsGlogLog: match filename keyword by keyword Splitting a filename into tokens by '.' causes problems if the executable's filename contains a dot. Filename should be matched keyword by keyword in the following order: 1. program name 2. hostname 3. username 4. "log"
-
Sergiu Deitsch authored
-
- 31 Oct, 2019 13 commits
-
-
Sergiu Deitsch authored
Extend the LogSink interface to be able to pass microseconds
-
Sergiu Deitsch authored
Added fixed log name support
-
Sergiu Deitsch authored
Allow getpwuid_r to return missing entry.
-
Sergiu Deitsch authored
Respect configured docdir
-
Sergiu Deitsch authored
Use thread local for libunwind GetStackTrace() reentrancy protection
-
Sergiu Deitsch authored
Fix build for Android API < 21
-
Sergiu Deitsch authored
Fix symbolize_unittest for musl builds
-
Sergiu Deitsch authored
Fix warnings
-
Sergiu Deitsch authored
logging: Fix compilation with uClibc++
-
Sergiu Deitsch authored
googletest: Switch to nanosleep
-
Rosen Penev authored
uClibc++ has compiler support for C++11, but not the functions. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
usleep is deprecated and optionally not available with uClibc-ng.
-
Sergiu Deitsch authored
src/symbolize.cc: fix build without dlfcn.h
-
- 29 Oct, 2019 1 commit
-
-
Fabrice Fontaine authored
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-
- 03 Sep, 2019 1 commit
-
-
Shinichiro Hamaji authored
I supported clang-cl with BUILD_SHARED_LIBS
-
- 02 Sep, 2019 2 commits
- 07 May, 2019 1 commit
-
-
Fumitoshi Ukai authored
-
- 24 Apr, 2019 1 commit
-
-
Philipp Wollermann authored
Ubuntu 14.04 is about to be end-of-life and Bazel CI will stop supporting it shortly afterwards. Context: https://groups.google.com/d/msg/bazel-dev/_D6XzfNkQQE/8TNKiNmsCAAJ
-
- 12 Apr, 2019 1 commit
-
-
Shuhei Takahashi authored
We need at least following defs to be set to print stacktrace in failure signal handler. - HAVE_UNWIND_H: on Linux and macOS. unwind.h is usually present by default on those OSes. - HAVE_DLADDR: on macOS. Windows is not cared because glog can not be built with bazel on Windows today.
-
- 03 Apr, 2019 1 commit
-
-
Amol Bhave authored
When glog 0.4.0 is built using musl instead of glibc, the compilation for this test fails because musl doesn't provide execinfo.h, which sets HAVE_STACKTRACE to false. Tested by building glog with musl and verifying that the build succeeds with this patch. [See https://github.com/openwrt/packages/pull/8583] Signed-off-by: Amol Bhave <ambhave@fb.com>
-
- 27 Mar, 2019 1 commit
-
-
Andrei Sekretenko authored
-
- 22 Mar, 2019 1 commit
-
-
Shinichiro Hamaji authored
Release 0.4.0
-
- 18 Feb, 2019 1 commit
-
-
Shinichiro Hamaji authored
Protect macros from user code to the left of them
-
- 16 Feb, 2019 2 commits
- 14 Feb, 2019 1 commit
-
-
Shinichiro Hamaji authored
-
- 02 Feb, 2019 2 commits
-
-
Shinichiro Hamaji authored
remove time from raw logging
-
Shinichiro Hamaji authored
for `&CheckStackAddress`, VisualStudio emits address of a trampoline like PLT, not the actual address of `CheckStackTrace`. We need address of `CheckStackTrace` to guess the address range of the function. `static` function seems to return the actual address of the function. Fixes #421
-
- 01 Feb, 2019 1 commit
-
-
Shinichiro Hamaji authored
Stop using auto_ptr std::unique_ptr requires -std=c++11. just use raw pointer.
-
- 29 Jan, 2019 1 commit
-
-
Peter Mutsaers authored
-
- 28 Jan, 2019 1 commit
-
-
Fumitoshi Ukai authored
project/google/glog -> project/google-admin/glog
-