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

<think>好的,我现在需要帮助用户了解ESP-ADF框架的相关信息,包括文档和概述。用户已经提供了三个引用来源,我需要结合这些信息来构建回答。 首先,我应该确认ESP-ADF是什么。根据引用[3],用户提到了ESP-IDF和ESP-ADF的官网下载链接,所以ESP-ADF应该是乐鑫(Espressif)公司的一个框架,可能与音频开发相关,因为ADF可能代表Audio Development Framework。用户提供的引用[1]和[2]都涉及到环境配置,特别是与ESP32和ESP-IDF相关,所以ESP-ADF可能基于ESP-IDF构建,专用于音频应用。 接下来,我需要整理用户提供的引用内容。引用[1]提到在终端输入idf等同于运行一个导出脚本,用于配置ESP-ADF环境。引用[2]讨论了在VS Code中搭建ESP-ADF环境,选择目录和已下载的esp-adf目录。引用[3]提供了ESP-IDF的官方文档链接,这可能是ESP-ADF的基础。 用户想要的是ESP-ADF的文档或概述,所以需要引导他们到官方资源。根据引用[3],虽然链接指向ESP-IDF的文档,但乐鑫的官网可能有专门的ESP-ADF部分。需要确认是否有独立的ESP-ADF文档,或者是否集成在ESP-IDF文档中。同时,用户的问题可能涉及到如何获取框架的概述,比如主要功能、应用场景等。 可能还需要补充ESP-ADF的主要特性,如支持的音频编解码器、音频处理功能、与ESP32芯片的兼容性等。此外,环境搭建步骤也是用户关心的,引用[1]和[2]提到了配置环境的方法,应该包括这些步骤,但需要简明扼要。 然后,生成相关问题。用户可能对如何开始使用ESP-ADF、如何配置环境、常见应用场景等感兴趣。根据引用中的环境配置步骤,相关问题可以涉及环境搭建的详细步骤、与ESP-IDF的关系、开发工具的支持(如VS Code插件)等。 最后,确保回答结构清晰,分点说明,并正确引用提供的资料。注意使用中文,数学公式使用正确的LaTeX格式,但在这个问题中可能不需要数学表达式。检查引用标识是否正确对应,如引用[1]、[2]、[3]分别对应不同的内容。</think>### ESP-ADF框架概述 ESP-ADF(Espressif Audio Development Framework)是乐鑫(Espressif)为ESP32系列芯片设计的音频开发框架,基于ESP-IDF(IoT Development Framework)构建,专注于音频应用的开发。它提供完整的音频处理工具链,支持从音频采集、处理到传输的全流程开发。 #### 核心功能 1. **音频协议支持**:支持MP3、AAC、FLAC、WAV等常见音频格式编解码。 2. **多场景应用**:适用于智能音箱、语音助手、网络收音机等场景。 3. **硬件兼容性**:适配ESP32、ESP32-S系列芯片,集成I2S、ADC/DAC等音频接口驱动。 4. **云端服务对接**:内置与主流云平台(如AWS、阿里云)的对接模块。 #### 环境配置 1. **依赖ESP-IDF**:需先安装ESP-IDF(版本需与ESP-ADF兼容),参考官方文档配置基础环境[^3]。 2. **设置ESP-ADF路径**: 在终端运行以下命令配置环境变量: ```bash export ADF_PATH=/path/to/esp-adf source $ADF_PATH/export.sh ``` 或通过VS Code插件直接选择已下载的ESP-ADF目录[^2]。 3. **验证环境**:执行`idf.py build`编译示例项目,确认工具链配置正确[^1]。 #### 文档资源 1. **官方文档**:访问[ESP-ADF官方文档](https://docs.espressif.com/projects/esp-adf/)获取API详解、开发指南及示例代码。 2. **GitHub仓库**:查看[ESP-ADF GitHub](https://github.com/espressif/esp-adf)获取源码和更新日志。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值