Skip to content

Commit 0ba2cf9

Browse files
Update CColoredStdoutLoggerANSI.h
do indendation Nabla style and use the correct `NBL_API2` for function export
1 parent 4ad3442 commit 0ba2cf9

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
#ifndef _NBL_SYSTEM_C_COLORFUL_STDOUT_LOGGER_ANSI_INCLUDED_
2-
#define _NBL_SYSTEM_C_COLORFUL_STDOUT_LOGGER_ANSI_INCLUDED_
1+
#ifndef _NBL_SYSTEM_C_COLORED_STDOUT_LOGGER_ANSI_INCLUDED_
2+
#define _NBL_SYSTEM_C_COLORED_STDOUT_LOGGER_ANSI_INCLUDED_
33

44
#include "nbl/system/IThreadsafeLogger.h"
55

66
#include <string_view>
77

8-
namespace nbl::system {
9-
10-
#include "nbl/system/DefaultFuncPtrLoader.h"
8+
namespace nbl::system
9+
{
1110

1211
// logging using ANSI escape codes
13-
class NBL_API CColoredStdoutLoggerANSI : public IThreadsafeLogger {
14-
15-
public:
16-
CColoredStdoutLoggerANSI(
17-
core::bitflag<E_LOG_LEVEL> logLevelMask = ILogger::defaultLogMask())
18-
: IThreadsafeLogger(logLevelMask) {}
12+
class NBL_API2 CColoredStdoutLoggerANSI : public IThreadsafeLogger
13+
{
14+
public:
15+
CColoredStdoutLoggerANSI(core::bitflag<E_LOG_LEVEL> logLevelMask = ILogger::defaultLogMask()) : IThreadsafeLogger(logLevelMask) {}
1916

20-
private:
21-
virtual void threadsafeLog_impl(const std::string_view &fmt,
22-
E_LOG_LEVEL logLevel, va_list args) override;
17+
private:
18+
virtual void threadsafeLog_impl(const std::string_view &fmt, E_LOG_LEVEL logLevel, va_list args) override;
2319
};
2420

2521
} // namespace nbl::system
2622

27-
#endif
23+
#endif

0 commit comments

Comments
 (0)