2019031419PM-Enable ADF Logging

该博客提供开启ADF请求日志、启用日志记录器以生成日志的指南,用于诊断和解决问题。介绍了查找要更改的日志记录器名称,还阐述了在独立和集成Weblogic Server上修改Logging.xml、使用EM控制台和WLST配置日志设置,以及在JBOException事件中生成事件的方法。

Description

This page will provide guideline to turn on ADF Request Logging/ enable loggers to generate logs that can be used to diagnose and troubleshoot issues.

Find out what is the Logger Named you want to Change?

FMW is a complex stack. Ask your developer the following info

  1. What is the logger name to be enabled e.g. oracle.adfdiagnostics or oracle.adf.model
  2. What is the log level for that logger e.g. CONFIG or FINEST

Once you have the above info, you can use the following mechanism to apply the Logger Name to your AppServer (typically WLS) env. If you need this info for non-WLS platforms - like WAS, Glassfish or Tomcat, contact dipankar.bajpai.

Typical ADF Functional Areas and Logger Mappings

ADF

Symptom

Logger Name

Level

Owner

ADF Diagnostics

 

oracle.adfdiagnostics

CONFIG

Trina.Dsouza

Model

 

oracle.adf.model, oracle.jbo

FINEST

Sekhar.Korupolu

Jedi

 

oracle.adf.model.businesseditor

FINE

Juan.Oropeza

Controller

 

oracle.adf.controller, oracle.adfinternal.controller

FINEST

Peter.Pressley

ADF Faces

 

oracle.adf.view, oracle.adfinternal.view

FINE

Michael.Mcgrath

ADFShare

 

oracle.adf.share

FINEST

Dipankar.Bajpai

ADFShare

Default or wrong adf-config.xml - Sometimes characterized by read-only MDS

oracle.adf.share.config.ADFConfigFactory, oracle.adf.share.config.FallbackConfigImpl

FINEST

Dipankar.Bajpai

User Interface Text (aka string editor)Searched strings aren't being found or being replaced after preview changes commit

oracle.adf.stringeditor,

oracle.adf.resourcebundle.stringeditor

FINESTDipankar.Bajpai

ADFSecurity

ADF authorization errors

oracle.adf.share.security

FINEST

yvonne.chua

ADFDi

 

oracle.adf.desktopintegration

 

alex.davis

MDS

See Diagnostic Logging section of MDS Information for Support wiki

 

 

denny.mckinney

Configuring Settings for Log Files

Modifying Logging.xml

On Standalone WeblogicServer

  • Stop the Server.
  • Modify <DOMAIN_ROOT>/fmwconfig/config/servers//logging.xml and enable logger by setting it to appropriate level. Add the logger if logger is missing in logging.xml.

    'oracle.adfdiagnostics' level='CONFIG'/>

  • Re-start the server.

On Integrated WeblogicServer (JDeveloper)

Open Logging.xml in Jdeveloper.

  • View->Application Server Navigator
  • Expand Application Servers
  • Right Click IntegratedWeblogicServer
  • Select "Configure Oracle Diagnostics Logging for "IntegratedWeblogicServer" "
  • Search for the logger. Add the logger if logger is missing in logging.xml.
  • Set appropriate log Level and save.

(lightbulb)You need not re-start the server.

Using EM Console

Configure logger level

  • Log into Enterprise Manager (eg: http://slc08yla.us.oracle.com:7011/em )with username/password(eg: weblogic/weblogic1) with ADMIN role privilege and navigate to the Log Configuration page for your server.
  • To open the Log Configuration page, right-click the Server node in the navigation tree and select Logs > Log Configuration.

  • For each logger, select the desired log level.

  • Add the logger (if missing) and set the log level.

Reset logger level

  • To reset logger, set log level to OFF using above steps.

Configure logger for a User

  • Follow the instructions here

(lightbulb)Verify appropriate logger name for different use-cases

Using WLST

  • Use WLST commands to set the log level. Be sure to start WLST command prompt using a username/password with ADMIN role privilege:

    setLogLevel(logger="oracle.adfdiagnostics", level="CONFIG", addLogger=1)

    Note: if after setLogLevel you do getLogLevel and logger level isn't set on the target server, then use setLogLevel with option target="" as seen below.

  • setLogLevel(logger="oracle.adfdiagnostics", level="CONFIG", addLogger=1,target="serverName")

Turn ON Per User ADF Request Logging 

  • Be sure to start WLST command prompt using a username/password with ADMIN role privilege:

    configureTracingLoggers(action='disable')

    configureTracingLoggers(pattern=['oracle.adfdiagnostics'], action='enable')

    startTracing(user='oracle.firstname.lastname', level='CONFIG')

Turn OFF Per User ADF Request Logging 

stopTracing(user='oracle.firstname.lastname')

 

How to start WLST

From middleware/oracle_common/common/bin execute following:

./setWlstEnv.sh

./wlst.sh

How to connect to Weblogic Server from WLST

  1. Start WLST How to start WLST
  2. Connect to the Weblogic Server
  • connect(user,password,'t3://host:port')

user- User name with ADMIN role privilege
password - password of above user.
host - host where app is deployed
port - Weblogic Server port

connect('weblogic','weblogic1','t3://localhost://7001')

(lightbulb)User, password, host and port are used as an example.

Generate Incident in an event of JBOException

Configure incident generation

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值