Comments (21)
Hi ezegomez,
Thanks for the suggestions.
I'm not sure the suggested change would solve my problem.
If I understand correctly, your change would append to existing log after restart.
We need to keep ability to limit the total size of the log, let's say to 10MB.
- start program. it sets max_log_size to 10MB.
- program writes to myapp.log.
- program restarts
- program appends to myapp.log
what would happen once it reaches the size limit of 10MB?
would it keep writing past 10MB or delete myapp.log and recreates the same file?
Either way, it won't work for us, as we want to limit the amount of logs and at the same time don't want to lose all logs when log rotates.
from glog.
I have the same problem, can't use linux logrotate
to delete old log files.
from glog.
See also #19 for a possible solution that enables logrotate support (I still need to update it to the latest master though)
from glog.
+1 for this feature.
from glog.
+1 for this feature.
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
+1 for this feature, otherwise I need to write scripts to rotate these files.
from glog.
+1 for this feature.
from glog.
+1
from glog.
+1
from glog.
+1
from glog.
Any updates on this feature ?
from glog.
+1
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
+1 for this feature
from glog.
Locking the issue due to spam.
from glog.
Related Issues (20)
- How to encrypt logs HOT 1
- [proposal] Provide pre-defined JSON log sink in glog HOT 2
- [Emscripten][Ubuntu 22.04.3 LTS] Use of undeclared identifier 'SYS_write' HOT 3
- building phase in Ubuntu 23.10 : /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPI HOT 3
- windows mingw64 compile fail HOT 4
- error in including <glog/logging.h> after installing glog according to the official tutorial HOT 2
- namespace "google" has no member "InitGoogleLogging" HOT 1
- FetchContent support HOT 4
- Customizing the Log Line Prefix HOT 2
- Can not build app integrating glog using CMake . HOT 3
- Using call_once could lead to infinite loop in fatal signal handler ? HOT 9
- Can LOG(FATAL) insert `__builtin_unreachable()` after `Fail()` ? HOT 2
- meet ASAN check failed when LOG(WARNING) HOT 6
- Can glog support compress log files? HOT 1
- glog.ini logfile_mode set error HOT 1
- why FLAGS_log_file_header is not exist in release version 0.6.0 ? HOT 1
- cmake: dbghelp is incorrectly detected when building static libraris with Xcode generator HOT 1
- make error relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' HOT 2
- Support Unicode in paths HOT 6
- LoongArch undefined reference error HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glog.