Skip to content

Commit 7ffa8cc

Browse files
committed
nsc logging
1 parent 3ae48b0 commit 7ffa8cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/nsc/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ShaderCompiler final : public system::IApplicationFramework
2727
if (!m_system)
2828
return false;
2929

30-
m_logger = make_smart_refctd_ptr<CStdoutLogger>();
30+
m_logger = make_smart_refctd_ptr<CStdoutLogger>(core::bitflag(ILogger::ELL_DEBUG) | ILogger::ELL_INFO | ILogger::ELL_WARNING | ILogger::ELL_PERFORMANCE | ILogger::ELL_ERROR);
3131

3232
auto argc = argv.size();
3333

@@ -120,7 +120,7 @@ class ShaderCompiler final : public system::IApplicationFramework
120120
}
121121
m_arguments.erase(output_flag_pos, output_flag_pos+2);
122122

123-
m_logger->log("Compiled shader code will be saved to " + output_filepath);
123+
m_logger->log("Compiled shader code will be saved to " + output_filepath, ILogger::ELL_INFO);
124124
}
125125

126126
#ifndef NBL_EMBED_BUILTIN_RESOURCES
@@ -150,7 +150,7 @@ class ShaderCompiler final : public system::IApplicationFramework
150150
std::fstream output_file(output_filepath, std::ios::out | std::ios::binary);
151151
output_file.write((const char*)compilation_result->getContent()->getPointer(), compilation_result->getContent()->getSize());
152152
output_file.close();
153-
m_logger->log("Shader compilation successful.");
153+
m_logger->log("Shader compilation successful.", ILogger::ELL_INFO);
154154
return true;
155155
}
156156
else {

0 commit comments

Comments
 (0)