diff --git a/src/ext/yuni/src/yuni/core/logs/handler/file.hxx b/src/ext/yuni/src/yuni/core/logs/handler/file.hxx index 8e8b1857cd..2fdd50032d 100644 --- a/src/ext/yuni/src/yuni/core/logs/handler/file.hxx +++ b/src/ext/yuni/src/yuni/core/logs/handler/file.hxx @@ -61,6 +61,7 @@ void File::internalDecoratorWriteWL(LoggerT& logger, const AnyStrin { if (pFile.opened()) { + using DecoratorsType = typename LoggerT::DecoratorsType; // Append the message to the file logger.DecoratorsType::template internalDecoratorAddPrefix(pFile, s); diff --git a/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h b/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h index 5027f4fe18..1d3151564d 100644 --- a/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h +++ b/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h @@ -34,10 +34,10 @@ class YUNI_DECL StdCout : public NextHandler colorsAllowed = YUNI_LOGS_COLORS_ALLOWED, }; -public: template void internalDecoratorWriteWL(LoggerT& logger, const AnyString& s) const { + using DecoratorsType = typename LoggerT::DecoratorsType; // Write the message to the std::cout/cerr if (VerbosityType::shouldUsesStdCerr) {