mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 11:15:50 +00:00
Added log rotation feature and console/file logging config options (#161)
- Added log rotation feature, currently set to rotate for every 12h or if log file size exceeds 2 Gb. If the log directory exceeds 50 Gb, old log files will be deleted. - Added config options for toggling console and file logging. - Changed config options for log file storage, now writing log files to a directory instead of a single file. - Added config options to allow specifying the log rotation size, log rotation interval, and log directory max size. - Added detailed documentation in README.md regarding how to configure log rotation. - Updated CMake install script to correctly set path in production mode Co-authored-by: Brandon Kong <bkong@ripple.com>
This commit is contained in:
@@ -6,7 +6,7 @@ install(TARGETS clio_server DESTINATION bin)
|
||||
|
||||
#install(FILES example-config.json DESTINATION etc RENAME config.json)
|
||||
file(READ example-config.json config)
|
||||
string(REGEX REPLACE "./clio.log" "/var/log/clio/clio.log" config "${config}")
|
||||
string(REGEX REPLACE "./clio_log" "/var/log/clio/" config "${config}")
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/install-config.json "${config}")
|
||||
install(FILES ${CMAKE_BINARY_DIR}/install-config.json DESTINATION etc RENAME config.json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user