Log4php
  1. Log4php
  2. LOG4PHP-83

Filters can not be configured using log4php.properties, only via XML

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Code
    • Labels:
      None

      Description

      I file a bug so that it does not get forgotten....

      -------------------------------
      Hi,

      yes, thats true. And its documented
      http://ci.apache.org/projects/log4php/docs/appender-filter.html

      As far as I know this is not implemented by Log4J itself. But imho
      this is not preventing us to do so. If you do, have in mind that
      filters needs parameters too.

      Cheers
      Christian

      On Tue, Sep 8, 2009 at 11:50 PM, Christian Hammers<ch@lathspell.de> wrote:
      > Hello
      >
      > Can it be that LoggerConfiguratorIni does not understand filters?
      >
      >    <appender name="default" class="LoggerAppenderEcho">
      >        <layout class="LoggerLayoutTTCC"/>
      >        <filter class="LoggerFilterDenyAll"/>
      >
      > works while
      >
      >        log4php.appender.default = LoggerAppenderEcho
      >        log4php.appender.default.layout = LoggerLayoutTTCC
      >        log4php.appender.default.filter = LoggerFilterDenyAll
      >        log4php.rootLogger = DEBUG, default
      >
      > does not.
      >
      > Is this intended? If so it should be better documented
      >

        Activity

        Hide
        Ivan Habunek added a comment -

        I don't think we should spend too much time implementing new features in the properties configuration format.

        The docs clearly state that filters are not configurable via properties.
        http://logging.apache.org/log4php/docs/appender/filter.html#Configuring

        I propose a "won't fix" resolution on this one. Any objections?

        Show
        Ivan Habunek added a comment - I don't think we should spend too much time implementing new features in the properties configuration format. The docs clearly state that filters are not configurable via properties. http://logging.apache.org/log4php/docs/appender/filter.html#Configuring I propose a "won't fix" resolution on this one. Any objections?
        Hide
        Ivan Habunek added a comment -

        Since properties configuration format has been deprecated for a while, and will possibly be removed for version 3, this will not be implemented.

        Show
        Ivan Habunek added a comment - Since properties configuration format has been deprecated for a while, and will possibly be removed for version 3, this will not be implemented.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development