1. 02 Nov, 2019 2 commits
    • Vyacheslav Yurkov's avatar
      Use libunwind as an imported target · 742fe94f
      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: 's avatarVyacheslav Yurkov <uvv.mail@gmail.com>
      742fe94f
    • Sergiu Deitsch's avatar
      Merge pull request #484 from sergiud/remove-executable-flag · fd3dc2c6
      Sergiu Deitsch authored
      removed executable flag from .cmake file
      fd3dc2c6
  2. 01 Nov, 2019 6 commits
    • Sergiu Deitsch's avatar
      removed executable flag from .cmake file · eec1435d
      Sergiu Deitsch authored
      eec1435d
    • Sergiu Deitsch's avatar
      Merge pull request #483 from loop0day/enhance · e227697b
      Sergiu Deitsch authored
      Support pkg-config
      e227697b
    • loop0day's avatar
      Support pkg-config · 82d0860b
      loop0day authored
      82d0860b
    • Sergiu Deitsch's avatar
      Merge pull request #482 from google/revert-19-master · e0a2521e
      Sergiu Deitsch authored
      Revert "Added fixed log name support"
      e0a2521e
    • Marco's avatar
      Add support for automatic removal of old logs (#432) · a6f7be14
      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"
      a6f7be14
    • Sergiu Deitsch's avatar
      Revert "Added fixed log name support" · 15fb5ca5
      Sergiu Deitsch authored
      15fb5ca5
  3. 31 Oct, 2019 13 commits
  4. 29 Oct, 2019 1 commit
  5. 03 Sep, 2019 1 commit
  6. 02 Sep, 2019 2 commits
  7. 07 May, 2019 1 commit
  8. 24 Apr, 2019 1 commit
  9. 12 Apr, 2019 1 commit
    • Shuhei Takahashi's avatar
      Fix stacktrace on bazel build. (#347) · 6ca3d3cf
      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.
      6ca3d3cf
  10. 03 Apr, 2019 1 commit
  11. 27 Mar, 2019 1 commit
  12. 22 Mar, 2019 1 commit
  13. 18 Feb, 2019 1 commit
  14. 16 Feb, 2019 2 commits
  15. 14 Feb, 2019 1 commit
  16. 02 Feb, 2019 2 commits
  17. 01 Feb, 2019 1 commit
  18. 29 Jan, 2019 1 commit
  19. 28 Jan, 2019 1 commit