You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2022/02/01 07:25:25 UTC

[GitHub] [logging-log4j2] ppkarwasz commented on pull request #735: Adds a shorthand method to specify components names

ppkarwasz commented on pull request #735:
URL: https://github.com/apache/logging-log4j2/pull/735#issuecomment-1026545182


   @carterkozak: this could work, but maybe let's use another suffix for the condensed property. Is `.config` Ok?
   
   Basically it could work like this:
    - the implicit name of an appender is from `appender.` to the **first** dot. The same could apply to filters and internal components,
    - the implicit name of a property is the part following `property.` (this is already true),
    - the implicit name of a logger is from `logger`. to the **last** dot. We add `.config` to Matt's shorthand notation (#733)
   
   @jvz : what do you think?
   
   An example config file:
   
   ```
   property.log.file.name=myapp
   appender.ROLLING.type=RollingFile
   appender.ROLLING.fileName=logs/${log.file.name}.log
   appender.ROLLING.filePattern=logs/${log.file.name}.%i.log
   appender.ROLLING.SIZE=SizeBasedTriggeringPolicy
   logger.org.apache.logging.log4j.config=INFO, ROLLING
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org