mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-14 16:04:03 +02:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
25 lines
778 B
C++
25 lines
778 B
C++
// Copyright (c) 2021-present 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
|
|
|
|
#include <util/result.h>
|
|
|
|
class ArgsManager;
|
|
|
|
namespace init {
|
|
void AddLoggingArgs(ArgsManager& args);
|
|
void SetLoggingOptions(const ArgsManager& args);
|
|
[[nodiscard]] util::Result<void> SetLoggingCategories(const ArgsManager& args);
|
|
[[nodiscard]] util::Result<void> SetLoggingLevel(const ArgsManager& args);
|
|
bool StartLogging(const ArgsManager& args);
|
|
void LogPackageVersion();
|
|
} // namespace init
|
|
|
|
#endif // BITCOIN_INIT_COMMON_H
|