解决Linux/aix 下的websphere log4j不生效

简介: websphere 解决Linux/aix下的log4j不生效 在目录: /IBM/WebSphere/AppServer/profiles/AppSrv01/properties 增加一个文件:可以新建txt然后另存为如下的名字 commons-logging.properties 内容为 org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl 问题解决。

websphere 解决Linux/aix下的log4j不生效

在目录:

/IBM/WebSphere/AppServer/profiles/AppSrv01/properties

增加一个文件:可以新建txt然后另存为如下的名字

commons-logging.properties

内容为

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl

问题解决。

 

其次,最好要在应用程序服务器 > RS10Report > 进程定义 > Java 虚拟机

 

通用JDK参数配上如下

-Dclient.encoding.override=GBK -Dcom.ibm.CORBA.iiop.noLocalCopies=true -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl -Dlog4j.logger.org.apache.component=DEBUG -Ddefault.client.encoding=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN

 

 

目录
相关文章
|
24天前
|
Linux Shell
Linux手动清理Linux脚本日志定时清理日志和log文件执行表达式
Linux手动清理Linux脚本日志定时清理日志和log文件执行表达式
78 1
|
1月前
|
监控 Shell Linux
【Shell 命令集合 系统管理 】Linux 自动轮转(log rotation)日志文件 logrotate命令 使用指南
【Shell 命令集合 系统管理 】Linux 自动轮转(log rotation)日志文件 logrotate命令 使用指南
51 0
|
6月前
|
Linux
百度搜索:蓝易云 ,Linux系统查看log日志命令详解!
通过使用以上命令,您可以方便地查看和搜索Linux系统中的日志文件内容。根据您的需求,选择适当的命令和选项来满足您的日志查看要求。
117 0
|
6月前
|
Linux 网络安全
【Linux】INFO: attempting to log in with the new key(s), to filter out any that are already...
【Linux】INFO: attempting to log in with the new key(s), to filter out any that are already...
318 0
|
7月前
|
运维 Linux 程序员
Linux查看log日志命令总结
Linux查看log日志命令总结
261 1
|
5月前
|
Linux 应用服务中间件 开发工具
Linux切割log日志
Linux切割log日志
|
7月前
|
Linux
Linux的/var/log/messages是空的,如何解决?
Linux的/var/log/messages是空的,如何解决?
282 0
|
10月前
|
运维 Linux Go
嵌入式linux下的c语言日志log模块,功能增强(二)
嵌入式linux下的c语言日志log模块,功能增强(二)
|
10月前
|
存储 Linux C语言
嵌入式linux下的c语言简易日志log模块,带颜色显示(一)
嵌入式linux下的c语言简易日志log模块,带颜色显示(一)
|
10月前
|
关系型数据库 MySQL Linux
在Linux中MySQL安装成功,但是执行sudo cat /var/log/mysqld.log找不到临时密码
在Linux中MySQL安装成功,但是执行sudo cat /var/log/mysqld.log找不到临时密码
172 0