mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	Guard for GCC < 11 and update readme (#243)
This commit is contained in:
		@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.16.3)
 | 
			
		||||
 | 
			
		||||
project(clio)
 | 
			
		||||
 | 
			
		||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11)
 | 
			
		||||
  message(FATAL_ERROR "GCC 11+ required for building clio")
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
option(BUILD_TESTS "Build tests" TRUE)
 | 
			
		||||
 | 
			
		||||
option(VERBOSE "Verbose build" TRUE)
 | 
			
		||||
@@ -12,7 +16,7 @@ endif()
 | 
			
		||||
 | 
			
		||||
if(NOT GIT_COMMIT_HASH)
 | 
			
		||||
  if(VERBOSE)
 | 
			
		||||
    message(WARNING "GIT_COMMIT_HASH not provided...looking for git")
 | 
			
		||||
    message("GIT_COMMIT_HASH not provided...looking for git")
 | 
			
		||||
  endif()
 | 
			
		||||
  find_package(Git)
 | 
			
		||||
  if(Git_FOUND)
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@ from which data can be extracted. The rippled node does not need to be running o
 | 
			
		||||
 | 
			
		||||
## Building
 | 
			
		||||
 | 
			
		||||
Clio is built with CMake. Clio requires c++20, and boost 1.75.0 or later.
 | 
			
		||||
Clio is built with CMake. Clio requires at least GCC-11 (C++20), and Boost 1.75.0 or later.
 | 
			
		||||
 | 
			
		||||
Use these instructions to build a Clio executable from the source. These instructions were tested on Ubuntu 20.04 LTS.
 | 
			
		||||
 | 
			
		||||
@@ -152,8 +152,8 @@ You must:
 | 
			
		||||
## Logging
 | 
			
		||||
Clio provides several logging options, all are configurable via the config file and are detailed below.
 | 
			
		||||
 | 
			
		||||
`log_level`: The minimum level of severity at which the log message will be outputted. 
 | 
			
		||||
Severity options are `trace`, `debug`, `info`, `warning`, `error`, `fatal`. 
 | 
			
		||||
`log_level`: The minimum level of severity at which the log message will be outputted.
 | 
			
		||||
Severity options are `trace`, `debug`, `info`, `warning`, `error`, `fatal`.
 | 
			
		||||
 | 
			
		||||
`log_to_console`: Enable/disable log output to console. Options are `true`/`false`. Defaults to true.
 | 
			
		||||
 | 
			
		||||
@@ -161,7 +161,7 @@ Severity options are `trace`, `debug`, `info`, `warning`, `error`, `fatal`.
 | 
			
		||||
 | 
			
		||||
`log_rotation_size`: The max size of the log file in **megabytes** before it will rotate into a smaller file.
 | 
			
		||||
 | 
			
		||||
`log_directory_max_size`: The max size of the log directory in **megabytes** before old log files will be 
 | 
			
		||||
`log_directory_max_size`: The max size of the log directory in **megabytes** before old log files will be
 | 
			
		||||
deleted to free up space.
 | 
			
		||||
 | 
			
		||||
`log_rotation_hour_interval`: The time interval in **hours** after the last log rotation to automatically
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user