Log4cxx
  1. Log4cxx
  2. LOGCXX-94

simplesocketserver.cpp should use LOG4CXX_STR("...") not L"..."

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux SuSE 9.3

      Description

      simplesocketserver.cpp should use LOG4CXX_STR("...") not L"..."

      change simplesocketserver/simplesocketserver.cpp

      changes lines 92 to
      LoggerPtr logger = Logger::getLogger(LOG4CXX_STR("SimpleSocketServer"));

      and line 95 to
      logstream << LOG4CXX_STR("Listening on port ") << port;

        Activity

        Hide
        Curt Arnold added a comment -

        Code using log4cxx is not expected to use the LOG4CXX_STR macros. The public API attempts to expose methods in the native char types used by the application. I dropped the use of the wide character qualifier so that the example might still compile on compilers that don't support wchar_t.

        Show
        Curt Arnold added a comment - Code using log4cxx is not expected to use the LOG4CXX_STR macros. The public API attempts to expose methods in the native char types used by the application. I dropped the use of the wide character qualifier so that the example might still compile on compilers that don't support wchar_t.

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Marc Wäckerlin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development