We are using SmartClient_v121p_2021-01-09_Enterprise version for smartclient
We are using Slf4j API logging for smartclient as our application is moving to log4j2 loggers.
Smartclient default logging was log4j 1.x. We have disabled it with flag -DiscUseLog4jConfig=false.
So our application is now using slf4j api logging and log4j2 implementation.
We have set -DiscUseSlf4j=true -DiscUseLog4jConfig=false and -Dlog4j2.configurationFile=<log4j2 config file for smartclient>
We can now see the logs. However, in the beginning of the log file there are null characters. I have attach the log file to show the null characters in the beginning. I have trimmed the log file. It generates 985k length of null characters. It is also missing following ISCInit log statements
================================================
=== 2022-07-08 06:49:07,767 [d-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2022-07-08 06:49:07,767 [d-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2022-07-08 06:49:07,771 [d-11] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2022-07-08 06:49:07,771 [d-11] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2022-07-08 06:49:07,796 [d-11] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2022-07-08 06:49:07,796 [d-11] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:***/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2022-07-08 06:49:07,798 [d-11] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2022-07-08 06:49:07,798 [d-11] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2022-07-08 06:49:07,799 [d-11] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2022-07-08 06:49:07,799 [d-11] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2022-07-08 06:49:07,803 [d-11] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2022-07-08 06:49:07,803 [d-11] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2022-07-08 06:49:07,804 [d-11] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2022-07-08 06:49:07,804 [d-11] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2022-07-08 06:49:07,806 [d-11] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:****/webapp/WEB-INF/classes/server.properties
=== 2022-07-08 06:49:07,806 [d-11] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:***/webapp/WEB-INF/classes/server.properties
=== 2022-07-08 06:49:07,810 [d-11] INFO Config - Applying system property webdriver.http.factory: apache
=== 2022-07-08 06:49:07,810 [d-11] DEBUG Config - ThreadLocal Config enabled === 2022-07-08 06:49:07,812 [d-11] INFO Logger - Logging system started.
========================================================================================================================
We are using Slf4j API logging for smartclient as our application is moving to log4j2 loggers.
Smartclient default logging was log4j 1.x. We have disabled it with flag -DiscUseLog4jConfig=false.
So our application is now using slf4j api logging and log4j2 implementation.
We have set -DiscUseSlf4j=true -DiscUseLog4jConfig=false and -Dlog4j2.configurationFile=<log4j2 config file for smartclient>
We can now see the logs. However, in the beginning of the log file there are null characters. I have attach the log file to show the null characters in the beginning. I have trimmed the log file. It generates 985k length of null characters. It is also missing following ISCInit log statements
================================================
=== 2022-07-08 06:49:07,767 [d-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2022-07-08 06:49:07,767 [d-11] INFO ISCInit - Isomorphic SmartClient/SmartGWT Framework - Initializing
=== 2022-07-08 06:49:07,771 [d-11] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2022-07-08 06:49:07,771 [d-11] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
=== 2022-07-08 06:49:07,796 [d-11] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2022-07-08 06:49:07,796 [d-11] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:***/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
=== 2022-07-08 06:49:07,798 [d-11] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2022-07-08 06:49:07,798 [d-11] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
=== 2022-07-08 06:49:07,799 [d-11] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2022-07-08 06:49:07,799 [d-11] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
=== 2022-07-08 06:49:07,803 [d-11] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2022-07-08 06:49:07,803 [d-11] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:*****/webapp/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
=== 2022-07-08 06:49:07,804 [d-11] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2022-07-08 06:49:07,804 [d-11] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
=== 2022-07-08 06:49:07,806 [d-11] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:****/webapp/WEB-INF/classes/server.properties
=== 2022-07-08 06:49:07,806 [d-11] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:***/webapp/WEB-INF/classes/server.properties
=== 2022-07-08 06:49:07,810 [d-11] INFO Config - Applying system property webdriver.http.factory: apache
=== 2022-07-08 06:49:07,810 [d-11] DEBUG Config - ThreadLocal Config enabled === 2022-07-08 06:49:07,812 [d-11] INFO Logger - Logging system started.
========================================================================================================================
Comment