Log4cxx
  1. Log4cxx
  2. LOGCXX-252

Add documentation for use of operator<< in logging requests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Documentation
    • Labels:
      None

      Description

      On Mar 18, 2008, at 9:09 AM, Josh Kelley wrote:

      I saw that I can use the << operator within the LOG4CXX_DEBUG, etc.
      macros; e.g.:

      LOG4CXX_DEBUG(logger, "Read " << path << " and got " << out);

      This seems very convenient (and a whole lot more convenient than
      formatting strings myself or having to use something like
      boost::format for every log statement), but as far as I can tell, it's
      undocumented. Is this use of operator<< officially supported, or is
      it an implementation detail that I should not be relying upon?

      If it is supported, then can I add a wiki page about it? If it's not
      supported, then is there a recommended way of doing formatted logging?

      Thanks.

      Josh Kelley

        Activity

        Curt Arnold created issue -
        Hide
        Curt Arnold added a comment -

        Documentation added to index.html in rev 638694.

        Show
        Curt Arnold added a comment - Documentation added to index.html in rev 638694.
        Curt Arnold made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        2m 51s 1 Curt Arnold 19/Mar/08 03:42

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Curt Arnold
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development