Skip to content

Commit

Permalink
Add missing declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Aug 4, 2023
1 parent 535cdd3 commit 6f70709
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cpp/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ void Logger::warn(const CFStringRef& msg) const
#endif

#if LOG4CXX_QSTRING_API
void Logger::addEvent(const LevelPtr& level, QString&& message, const LocationInfo& location) const
void Logger::addEvent(const LevelPtr& level, QString& message, const LocationInfo& location) const
{
if (!getHierarchy()) // Has removeHierarchy() been called?
return;
Expand Down
11 changes: 11 additions & 0 deletions src/main/include/log4cxx/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,17 @@ class LOG4CXX_EXPORT Logger :
@param message The text to add to the logging event.
*/
void forcedLog(const LevelPtr& level, const CFStringRef& message) const;
#endif
#if LOG4CXX_QSTRING_API
/**
Add a new logging event containing \c message and \c location to attached appender(s).
without further checks.
@param level The logging event level.
@param message The text to add to the logging event.
@param location The source code location of the logging request.
*/
void addEvent(const LevelPtr& level, QString& message,
const spi::LocationInfo& location = spi::LocationInfo::getLocationUnavailable()) const;
#endif
/**
Add a new logging event containing \c message and \c location to attached appender(s).
Expand Down

0 comments on commit 6f70709

Please sign in to comment.