1. 17 Jan, 2020 1 commit
  2. 08 Jan, 2020 1 commit
    • Michael Spang's avatar
      Use file offsets in traces if object has no symbols (#513) · 130a3e10
      Michael Spang authored
      Fallback to using file offsets if no symbol is found, like we do if the
      object could not be opened.
      
      This makes backtraces usable even if objects in the trace are stripped,
      since the trace can be symbolized by post-processing it with a tool like
      asan_symbolize.py.
      
      Note that this is not currently compatible with SymbolizeCallback as
      this overwrites the filename in the buffer. The behavior is unchanged
      in that case.
      
      Closes: #514
      130a3e10
  3. 24 Dec, 2019 1 commit
  4. 21 Dec, 2019 1 commit
  5. 27 Nov, 2019 3 commits
  6. 20 Nov, 2019 3 commits
  7. 10 Nov, 2019 4 commits
  8. 06 Nov, 2019 1 commit
    • Ezequiel Lara Gomez's avatar
      Added fixed log name support, take 2 (#489) · 58d7f873
      Ezequiel Lara Gomez authored
      * Added fixed log name support, take 2
      
      See https://code.google.com/p/google-glog/issues/detail?id=209 and former https://github.com/google/glog/pull/19 - this is an updated version of that patch.
      
      It adds a flag that allows to switch behavior from base_filename + filename_extension + time_pid_string to base_filename + filename_extension, while still defaulting to the current behavior to avoid breakage in existing code. This change would allow easier log rotation schemes and better control on what's written on disk.
      
      * Ifdef away fcntl on mingw
      
      * Use the defined HAVE_FCNTL instead
      
      * ifdef away tests as well
      
      add have_sys_wait for wait() on mingw.
      
      * OS_WINDOWS bug in fseeking to the end, only triggered here
      58d7f873
  9. 05 Nov, 2019 2 commits
  10. 04 Nov, 2019 2 commits
  11. 02 Nov, 2019 6 commits
  12. 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
  13. 31 Oct, 2019 9 commits