You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2007/12/05 08:59:26 UTC
svn commit: r601239 - /logging/log4cxx/trunk/src/main/cpp/logger.cpp
Author: carnold
Date: Tue Dec 4 23:59:25 2007
New Revision: 601239
URL: http://svn.apache.org/viewvc?rev=601239&view=rev
Log:
LOGCXX-213: trace method implementation is missing
Modified:
logging/log4cxx/trunk/src/main/cpp/logger.cpp
Modified: logging/log4cxx/trunk/src/main/cpp/logger.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/cpp/logger.cpp?rev=601239&r1=601238&r2=601239&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/cpp/logger.cpp (original)
+++ logging/log4cxx/trunk/src/main/cpp/logger.cpp Tue Dec 4 23:59:25 2007
@@ -596,6 +596,34 @@
}
#endif
+void Logger::trace(const std::string& msg, const log4cxx::spi::LocationInfo& location) {
+ if (isEnabledFor(log4cxx::Level::getTrace())) {
+ forcedLog(log4cxx::Level::getTrace(), msg, location);
+ }
+}
+
+#if LOG4CXX_HAS_WCHAR_T
+void Logger::trace(const std::wstring& msg, const log4cxx::spi::LocationInfo& location) {
+ if (isEnabledFor(log4cxx::Level::getTrace())) {
+ forcedLog(log4cxx::Level::getTrace(), msg, location);
+ }
+}
+#endif
+
+void Logger::trace(const std::string& msg) {
+ if (isEnabledFor(log4cxx::Level::getTrace())) {
+ forcedLog(log4cxx::Level::getTrace(), msg);
+ }
+}
+
+#if LOG4CXX_HAS_WCHAR_T
+void Logger::trace(const std::wstring& msg) {
+ if (isEnabledFor(log4cxx::Level::getTrace())) {
+ forcedLog(log4cxx::Level::getTrace(), msg);
+ }
+}
+#endif
+
void Logger::debug(const std::string& msg, const log4cxx::spi::LocationInfo& location) {
if (isEnabledFor(log4cxx::Level::getDebug())) {
forcedLog(log4cxx::Level::getDebug(), msg, location);