on ‎2022 Feb 22 9:25 AM
logs are not getting printed for our project, when we rae adding below property in our local.properties
log4j.logger.com.<MYPROJECT>=INFO. When we remove this all logs are getting printed but we need to filtered logs for our project only. Any help would be much appreciated.
Thanks
Priyanka
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
It looks like something wrong with the log4j appender, could you check which appender the com.company logger is using?
You might also have a configuration conflicts somewhere in the project, which is overriding your setup. But you can quickly check it up in HAC tool and find the com.company logger in the logging tool.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
what are the java packages that you want to log?
Your example log4j.logger.com will log all java classes that are in the com.* package. ; it will however not log java classes that start with e.g. org or de like this:
log4j.logger.org.apache.http.headers=debug
log4j.logger.de.hybris.platform.promotions=debugSo assuming that the project classes are in the com.acompany.services package then you need to define
log4j.logger.com.acompany.services=debug
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.