Log4php
  1. Log4php
  2. LOG4PHP-78

AppenderSocket: locationInfo=false has no effect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Code
    • Labels:
      None

      Description

      Using the following config (from the src/examples/ directory), locationInfo is still printed.

      log4php.appender.default = LoggerAppenderSocket
      log4php.appender.default.layout = LoggerLayoutSimple
      log4php.appender.default.remoteHost = localhost
      log4php.appender.default.port = 4242
      log4php.appender.default.useXml = true
      log4php.appender.default.locationInfo = false
      log4php.rootLogger = DEBUG, default

      $ sudo nc -l -p 4242 & php src/examples/php/appender_socket.php
      [1] 19632
      <log4j:event logger="root" level="FATAL" thread="19633" timestamp="1252368299444">
      <log4j:message><Unable to render embedded object: File ([CDATA[Hello World) not found.]]></log4j:message>
      <log4j:locationInfo class="main" file="/srv/home/james/workspace/log4php/src/examples/php/appender_socket.php" line="24" method="main" />
      </log4j:event>

      [1]+ Fertig sudo nc -l -p 4242

        Activity

        Hide
        Christian Grobmeier added a comment -

        Can you try putting false into quote: "false"
        I am not sure but I remind that there was something like that

        Show
        Christian Grobmeier added a comment - Can you try putting false into quote: "false" I am not sure but I remind that there was something like that
        Hide
        Christian Hammers added a comment -

        I close this bug report as it was indeed the missing quotes around the "false". See LOG4PHP-81 for further discussion.

        Show
        Christian Hammers added a comment - I close this bug report as it was indeed the missing quotes around the "false". See LOG4PHP-81 for further discussion.

          People

          • Assignee:
            Unassigned
            Reporter:
            Christian Hammers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development