rocketmq-client-cpp icon indicating copy to clipboard operation
rocketmq-client-cpp copied to clipboard

Log related issues

Open 41405465 opened this issue 4 years ago • 4 comments

  1. The log directory cannot be configured
  2. The log file name should distinguish the year, month and day
  3. Delete all log files in the log directory, new logs will not generate new log files, and log files will not be generated until 0:00 the next day
  4. Delete all log files in the log directory, it will crash at 0 o'clock the next day, the cause of the crash is that the log file does not exist (it has been deleted)
  5. There is no limit on the size of the log directory

41405465 avatar Dec 29 '20 03:12 41405465

link #297 #314

ifplusor avatar Dec 29 '20 03:12 ifplusor

Logging is currently a mess in this library. I do hope it will improve in the re_dev branch.

messense avatar Dec 29 '20 03:12 messense

Can these problems be solved?

41405465 avatar Apr 06 '21 06:04 41405465

Can these problems be solved?

You can use re_dev branch, it provide LoggerConfig& GetDefaultLoggerConfig(); function to expose config of default logger which be used to configure default logger.

ifplusor avatar Apr 06 '21 06:04 ifplusor