-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from northwesternfintech/config
Switch configs from #define to constexpr
- Loading branch information
Showing
41 changed files
with
176 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
// Compile-time config shared between exchange and wrapper | ||
|
||
#include <cstdint> | ||
|
||
#include <string> | ||
|
||
namespace nutc::common { | ||
constexpr std::string NUTC_VERSION = "1.0"; | ||
|
||
// logging | ||
constexpr uint8_t LOG_BACKTRACE_SIZE = 10; | ||
|
||
// Constexpr std::string concat needs llvm 19, which is annoying to install | ||
constexpr std::string LOG_DIR = "logs"; | ||
constexpr std::string LOG_FILEPATH = "logs/app.log"; | ||
constexpr std::string JSON_LOG_FILEPATH = "logs/json.log"; | ||
|
||
constexpr uint32_t LOG_FILE_SIZE = 1024 * 1024 / 2; // 512 KB | ||
constexpr uint8_t LOG_BACKUP_COUNT = 5; | ||
} // namespace nutc::common |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.