MaxDiskSize MaxLogCount for glog?

117 views
Skip to first unread message

Jack Li

unread,
Apr 7, 2022, 2:27:06 PM4/7/22
to golang-nuts
Hi group,

I only find MaxSize in glog which sets the size of each log file. 

Can glog support the options like how many disk size (ie. 10%, 1.8G, etc.) all the log files may use in total, and the count (ie. 10) of log files it can save. For example, logfile1.txt, logfile2.txt, ..., logfile10.txt. These 10 files is 18G in total. And there is no logfile11.txt, its content will overwrite logfile1.txt.

peterGo

unread,
Apr 8, 2022, 9:13:38 AM4/8/22
to golang-nuts


On Thursday, April 7, 2022 at 2:27:06 PM UTC-4 Jack Li wrote:
Hi group,

Can glog support the options like how many disk size (ie. 10%, 1.8G, etc.) all the log files may use in total, and the count (ie. 10) of log files it can save. For example, logfile1.txt, logfile2.txt, ..., logfile10.txt. These 10 files is 18G in total. And there is no logfile11.txt, its content will overwrite logfile1.txt.


glog    

"The code in this repo is for export only and is not itself under development. Feature requests will be ignored."

Peter

Jack Li

unread,
Apr 9, 2022, 8:41:38 AM4/9/22
to peterGo, golang-nuts
Is it still maintained? The last commit is Aug 20, 2021 which is more than half year ago. The last commit of glog in C++ is just 5 days ago.



------------------ Original ------------------
From: "peterGo"<go.pe...@gmail.com>;
Date: 2022年4月8日(星期五) 晚上9:13
To: "golang-nuts"<golan...@googlegroups.com>;
Subject: [go-nuts] Re: MaxDiskSize MaxLogCount for glog?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/93de7324-da98-4193-9d04-cae02b740db2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages