我的 Eclipse 控制台中的日志显示有问题。启动和停止 weblogic 服务器时显示的日文字符是垃圾。但是,应用程序写入的日志没有问题。我正在使用 log4j。Log4j.properties
# Log4JLogger\u521d\u671f\u5316\u30d1\u30e9\u30e1\u30bf\u8a2d\u5b9a
# \u30ed\u30b0\u30ec\u30d9\u30eb\u3001\u30a2\u30da\u30f3\u30c0\u540d\u8a2d\u5b9a
log4j.rootCategory=INFO, consoleLog, consolefileLog
# \u30ed\u30b0\u30ec\u30d9\u30eb\u306e\u8a73\u7d30\u8a2d\u5b9a
log4j.category.jp.terasoluna=DEBUG
log4j.category.org.springframework=INFO
log4j.category.org.apache.struts=INFO
log4j.category.com.ibatis=DEBUG
log4j.category.java.sql=DEBUG
# This is the category for operations Logger class
# Do not change unless you know exactly what you are doing
#log4j.category.jp.co.anicom.fw.common.log.Logger=DEBUG, fileLog
log4j.category.opLog=DEBUG, fileLog
# \u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.consoleLog=org.apache.log4j.ConsoleAppender
log4j.appender.consoleLog.Target = System.out
log4j.appender.consoleLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consoleLog.layout.ConversionPattern=[%d{yyyy/MM/dd HH:mm:ss}][%p][%C{1}] %m%n
#log4j.appender.consoleLog.encoding=UTF-8
log4j.appender.consolefileLog=org.apache.log4j.FileAppender
log4j.appender.consolefileLog.File = anicomConsole.log
log4j.appender.consolefileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.consolefileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.consolefileLog.encoding=UTF-8
# \u30d5\u30a1\u30a4\u30eb\u30a2\u30da\u30f3\u30c0\u8a2d\u5b9a
log4j.appender.fileLog=org.apache.log4j.FileAppender
log4j.appender.fileLog.File = anicomOp.log
log4j.appender.fileLog.layout = org.apache.log4j.PatternLayout
log4j.appender.fileLog.layout.ConversionPattern=[%d] %m%n
log4j.appender.fileLog.encoding=UTF-8
# Global logging configuration
log4j.logger.com.ibatis=DEBUG
# shows SQL of prepared statements
log4j.logger.java.sql=DEBUG
log4j.logger.java.sql.Connection=DEBUG
# shows parameters inserted into prepared statements
log4j.logger.java.sql.PreparedStatement=DEBUG
# shows query results
log4j.logger.java.sql.ResultSet=DEBUG
log4j.logger.java.sql.Statement=DEBUG
==================================================== ================================
我的 Eclipse 控制台中也有这些。如您所见,它显示垃圾
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1 \utils\config\10.3.1.0\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server \lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices .jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar; C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar 。PATH=C:\Oracle\MIDDLE~1\patch_wls1031\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV ~1.3\server\bin;C:
- 要启动 WebLogic Server,请使用用户名和 *
- 分配给管理员级别用户的密码。为了 *
- 服务器管理,使用 WebLogic Server *
- http:\hostname:port\console 上的控制台 *
使用 Java 版本启动 weblogic:在地址侦听传输 dt_socket:8453 java 版本“1.6.0_11”Java(TM) SE 运行时环境(构建 1.6.0_11-b03)Java HotSpot(TM) 客户端 VM(构建 11.0-b16,混合mode) 使用以下行启动 WLS:C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava。编译器=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3 \server\lib\weblogic.policy -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea :com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1 \WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1 \patch_wls1031\profiles\default\sysext_manifest_classpath weblogic.Server 在地址监听传输 dt_socket:8453 <2010/11/03 15��12��30�b SGT> <����̊g����q�f�B� ��N�g����̓��e��N���X�p�X�̌��ɒlj��������:C:\Oracle\Middleware\wlserver_10.3\ L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3 \L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10。 3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C :\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar; C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar ;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW。 jar> <2010/11/03 15��12��30�b SGT> <2010/11/03 15��12��31�b SGT> <�o�[�W����:WebLogic Server 10.3.1.0 6 月 10 日星期三 22:24:41 MDT 2009 1227385 > <2010/11/03 15��12��33�b SGT> <�T�[�o��Ԃ� 开始�ɕω����������B> <2010/ 11/03 15��12��33�b SGT> <�����`���[�j���O�X���b�h�v�[������� ��������B> <2010/11/03 15��12��33�b SGT> <���O�t�@�C�� C:\Oracle\Middleware\user_projects\domains \teraproto\servers\AdminServer\logs\AdminServer.log ̓��[�e�[�V����������B��������~������ꍇ �́A���O�t�@�C�����ăI�[�v�����Ă��������B����́AWindows �ȂLjꕔ�̃v����b �g�t�H�[���ŋN����\����������B> <2010/11/03 15��12��33�b SGT> <�� �O�t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log01940 ��������B�O���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer。日志�ɋL�^������B> <2010/11/03 15��12��33�b SGT> <�T�[�o���O�t�@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\AdminServer.log ��B���ׂẴT�[�o�T�C�h���O�C�x���g�͂��̃t�@�����ɏ�������� <2010/11/03 15��12��38�b SGT> <�Z�L�����e�B�̓Z�L�����e�B��� ���myrealm ���g�p���ď����Ă����B> <2010/11/03 15��12��40�b SGT> <���O�t �@�C�� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log �̓��[�e�[�V���������� B��������~�����ꍇ�́A���O�t�@�C�����ăI�[�v�����Ă������ ��B����́AWindows ��������ꕔ�̃v����b�g�t�H�[���ŋN����\����������B> <2010/11 /03 15��12��40�b SGT> <���O�t�@�C���� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log01446 �����[�e�[�V��������������B���O���b�Z�[�W�͈��� C:\Oracle\Middleware\user_projects\domains\teraproto\servers\AdminServer\logs\access.log