common.h raw

   1  // Copyright (c) 2021-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  //! @file
   6  //! @brief Common init functions shared by bitcoin-node, bitcoin-wallet, etc.
   7  
   8  #ifndef BITCOIN_INIT_COMMON_H
   9  #define BITCOIN_INIT_COMMON_H
  10  
  11  #include <util/result.h>
  12  
  13  class ArgsManager;
  14  
  15  namespace init {
  16  void AddLoggingArgs(ArgsManager& args);
  17  void SetLoggingOptions(const ArgsManager& args);
  18  [[nodiscard]] util::Result<void> SetLoggingCategories(const ArgsManager& args);
  19  [[nodiscard]] util::Result<void> SetLoggingLevel(const ArgsManager& args);
  20  bool StartLogging(const ArgsManager& args);
  21  void LogPackageVersion();
  22  } // namespace init
  23  
  24  #endif // BITCOIN_INIT_COMMON_H
  25