Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit 1023a13

Browse files
author
tomasmark79
committed
revided by human
1 parent b08437e commit 1023a13

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

include/DotNameLib/DotNameLib.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ namespace dotnamecpp::v1 {
3232
if (assetManager_ && assetManager_->validate ()) {
3333

3434
logger_->infoStream () << "DotNameLib initialized";
35-
logger_->infoStream () << "Assets: " << assetManager_->getAssetsPath ();
36-
logger_->debugStream () << "Assets: " << assetManager_->getAssetsPath ();
3735

3836
const auto logoPath = assetManager_->resolveAsset ("DotNameCppLogo.svg");
3937
if (assetManager_->assetExists ("DotNameCppLogo.svg")) {
40-
logger_->debugStream () << "Logo: " << logoPath;
38+
logger_->debugStream () << "Logo: " << logoPath << " found";
4139
} else {
4240
logger_->warningStream () << "Logo not found: " << logoPath;
4341
}

standalone/src/Standalone.hpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ namespace dotnamecpp::app {
6565
Standalone (const Standalone&) = delete;
6666
Standalone& operator= (const Standalone&) = delete;
6767

68+
logging::ILogger& getLogger () {
69+
return *logger_;
70+
}
71+
72+
[[nodiscard]]
73+
const std::string& getAppName () const {
74+
return appName_;
75+
}
76+
6877
// Initialize all components (1. logger, 2. assets, 3. library)
6978
bool initializeComponents (const logging::LoggerConfig& loggerConfig,
7079
const std::filesystem::path& executablePath) {
@@ -94,19 +103,13 @@ namespace dotnamecpp::app {
94103
return EXIT_FAILURE;
95104
}
96105

106+
logger_->warningStream () << "... warning example ...";
107+
logger_->errorStream () << "... error example ...";
97108
logger_->infoStream () << appName_ << " running...";
109+
logger_->infoStream () << ".";
98110

99111
return EXIT_SUCCESS;
100112
}
101-
102-
logging::ILogger& getLogger () {
103-
return *logger_;
104-
}
105-
106-
[[nodiscard]]
107-
const std::string& getAppName () const {
108-
return appName_;
109-
}
110113
};
111114

112115
} // namespace dotnamecpp::app

0 commit comments

Comments
 (0)