CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/filesystem/path.hpp>
27 namespace config {
class CatapultConfiguration; }
28 namespace crypto {
class KeyPair; }
31 namespace catapult {
namespace process {
61 const std::string& host,
utils::LogLevel Level
Log level.
Definition: LoggingConfiguration.h:37
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
utils::BasicLoggerOptions GetConsoleLoggerOptions(const ConsoleLoggerConfiguration &config)
Maps console logger configuration (config) to console logger options.
Definition: LoggingConfiguration.cpp:64
FileLoggerConfiguration File
File logger settings.
Definition: LoggingConfiguration.h:74
Basic logger configuration settings.
Definition: LoggingConfiguration.h:32
ProcessOptions
Process options.
Definition: ProcessMain.h:34
std::function< std::shared_ptr< void >(config::CatapultConfiguration &&, const crypto::KeyPair &)> CreateProcessHost
Definition: ProcessMain.h:44
void CatapultLogFlush()
Definition: Logging.cpp:283
std::string GetThreadName()
Gets a thread name in a platform-dependent way.
Definition: ThreadInfo.cpp:74
Logging configuration settings.
Definition: LoggingConfiguration.h:68
Exit immediately after process host creation.
Lock based on an underlying lock file.
Definition: FileLock.h:29
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
void SetThreadName(const std::string &name)
Definition: ThreadInfo.cpp:69
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
utils::ContainerHexFormatter< Key::const_iterator > FormatKey(const Key &key)
Formats a public key for printing.
Definition: KeyUtils.cpp:27
def info(*args)
Definition: forwardsValidation.py:12
boost::filesystem::path GetResourcesPath(int argc, const char **argv)
Definition: ProcessMain.cpp:90
Wait for termination signal before exiting.
int ProcessMain(int argc, const char **argv, const std::string &host, const CreateProcessHost &createProcessHost)
Definition: ProcessMain.cpp:94
void ValidateConfiguration(const CatapultConfiguration &config)
Validates config and throws an exception if it is invalid.
Definition: ValidateConfiguration.cpp:61
void WaitForTerminationSignal()
Pauses until the program receives a termination signal.
Definition: Signals.cpp:34
std::unordered_map< std::string, utils::LogLevel > ComponentLevels
Custom component log levels.
Definition: LoggingConfiguration.h:40
#define UNHANDLED_EXCEPTION_MESSAGE(ACTION)
Outputs a message for an unhandled exception that occurred during ACTION.
Definition: ExceptionLogging.h:30
Definition: AddressExtractionExtension.cpp:28
TConfiguration LoadConfiguration(const boost::filesystem::path &path, TConfigurationLoader loader)
Loads configuration from path using loader.
Definition: ConfigurationFileLoader.h:34
utils::FileLoggerOptions GetFileLoggerOptions(const FileLoggerConfiguration &config)
Maps file logger configuration (config) to file logger options.
Definition: LoggingConfiguration.cpp:71
static auto FromString(const std::string &privateKey)
Creates a key pair from privateKey.
Definition: KeyPair.h:46
void WriteVersionInformation(std::ostream &out)
Writes custom version information to out.
Definition: version.cpp:26
ConsoleLoggerConfiguration Console
Console logger settings.
Definition: LoggingConfiguration.h:71
static CatapultConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath, const std::string &extensionsHost)
Definition: CatapultConfiguration.cpp:61