Two Laptop Bag
The moose likes Other Open Source Projects and the fly likes log level per appender Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log level per appender" Watch "log level per appender" New topic

log level per appender

Takeshi Toyohara

Joined: Feb 03, 2002
Posts: 21
Does anyone know if there is built in functionality to have different appenders listen at different log levels? Say for example, I want my console to only spit out info or higher msgs, while i want debug and higher in my logfile.
do i have to create a wrapper around the appenders i want to use, or is this already available?
i cant seem to google anything and i didnt see anything in this forum already. thanks much
oh i did try the Threshold=WARN declaration in the configuration file, but it didnt seem to work. i tried using it on log4j v 1.2.5 and 1.2.8.
[ March 11, 2003: Message edited by: Takeshi Toyohara ]
Takeshi Toyohara

Joined: Feb 03, 2002
Posts: 21
ahhh - apparently its not "Threshold" but "threshold"
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: log level per appender
It's not a secret anymore!