2022-12-24 23:49:50 +00:00
|
|
|
// Copyright (c) 2021-2022 The Bitcoin Core developers
|
2021-04-18 18:56:12 -04:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
//! @file
|
|
|
|
//! @brief Common init functions shared by bitcoin-node, bitcoin-wallet, etc.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_INIT_COMMON_H
|
|
|
|
#define BITCOIN_INIT_COMMON_H
|
|
|
|
|
2023-05-12 00:23:21 +02:00
|
|
|
#include <util/result.h>
|
|
|
|
|
2021-04-18 19:01:01 -04:00
|
|
|
class ArgsManager;
|
|
|
|
|
2021-04-18 18:56:12 -04:00
|
|
|
namespace init {
|
2021-04-18 19:01:01 -04:00
|
|
|
void AddLoggingArgs(ArgsManager& args);
|
2021-04-18 19:03:26 -04:00
|
|
|
void SetLoggingOptions(const ArgsManager& args);
|
2023-05-12 00:23:21 +02:00
|
|
|
[[nodiscard]] util::Result<void> SetLoggingCategories(const ArgsManager& args);
|
2023-05-12 00:58:35 +02:00
|
|
|
[[nodiscard]] util::Result<void> SetLoggingLevel(const ArgsManager& args);
|
2021-04-18 19:05:03 -04:00
|
|
|
bool StartLogging(const ArgsManager& args);
|
2021-04-18 19:07:13 -04:00
|
|
|
void LogPackageVersion();
|
2021-04-18 18:56:12 -04:00
|
|
|
} // namespace init
|
|
|
|
|
|
|
|
#endif // BITCOIN_INIT_COMMON_H
|