Can Weblogic log objects be filtered from web applications?

Asked 2 years ago, Updated 2 years ago, 38 views

<2014/12/19 17:15:53 JST><Notice><LoggingService><BEA-320400><Log File C:\Oracle\user_projects\domains\base_domain\servers\AdminServer\logs\datource Rotation.If the process stops, please reopen the log file.This can happen on some platforms, such as Windows.> 
<12/19/2014 17:15:53 JST><Notice><LoggingService><BEA-320401><Log file has been rotated to C:\Oracle\user_projects\domains\base_domain\servers\AdminServer\logs\datasource.log01257US>Log messages continue to be logged to C:\Oracle\user_projects\domains\base_domain\servers\AdminServer\logs\datasource.log.>  

Starting Weblogic can cause a large number of log messages similar to the above.
I was wondering if I could filter this from the web application.

http://otndnld.oracle.co.jp/document/products/wls/docs81/logging/filtering.html

Using the above URL as a reference, I created a filter class and registered it with a web application.
So I was able to filter some log objects, but
The above logs could not be filtered.

I thought the context of retrieving Logger and Handler objects was wrong.
None of them were filtered.
Is this not the way to filter the above logs?

java weblogic

2022-09-30 20:11

1 Answers

I imagined that this log might be controlled by a configuration file loaded on a different class path because it concerns the log system itself.Why don't you embed the configuration file into a jar file that contains the LoggingService class?

Note:
I read the linked documentation later, but it doesn't seem to be the type of structure you set up in the xml or properties file.Excuse me...


2022-09-30 20:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.