2021-04-18 18:56:12 -04:00
|
|
|
// Copyright (c) 2021 The Bitcoin Core developers
|
|
|
|
// 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
|
|
|
|
|
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);
|
|
|
|
void SetLoggingCategories(const ArgsManager& args);
|
2022-06-07 00:18:58 +08:00
|
|
|
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
|