cancel
Showing results for 
Search instead for 
Did you mean: 

Log file not creating

Former Member
0 Kudos

Hi, I tried to configure log for my application, but the log files are not getting created, I am getting the following error.

-


My log configuration -


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">

<log-configuration>

<log-destinations>

<log-destination

count="10"

effective-severity="ALL"

limit="10000"

name="LogTestLog"

pattern="./log/applications/TestLog/LogTestLog.%g.log"

type="FileLog"/>

</log-destinations>

<log-controllers>

<log-controller

effective-severity="ALL"

name="System.out">

<associated-destinations>

<destination-ref

association-type="LOG"

name="LogTestLog"/>

</associated-destinations>

</log-controller>

<log-controller

effective-severity="ALL"

name="com.giri.test.LogServlet">

<associated-destinations>

<destination-ref

association-type="LOG"

name="LogTestLog"/>

<anonymous-destination

association-type="LOG"

type="FileLog"/>

</associated-destinations>

</log-controller>

</log-controllers>

</log-configuration>

-


#

#1.5#0030485D5AE617CD000000000000142000042AAA6682264C#1172811259302#/System/Logging##com.sap.tc.logging.FileLogInfoData.[getFileHeader(String fileName, int cntHeadLines)]######147f6460c87a11dba2920030485d5ae6#SAPEngine_System_Thread[impl:5]_99##0#0#Warning##Java#SAP_LOGGING_UNEXPECTED##Unexcepted error occured on !#1#FileHeader parsing# #1.5#0030485D5AE617CD000000010000142000042AAA6682297F#1172811259302#/System/Logging##/System/Logging######147f6460c87a11dba2920030485d5ae6#SAPEngine_System_Thread[impl:5]_99##0#0#Path##Java###Caught #1#java.lang.Exception: .
log
applications
TestLog
LogTestLog.0.log (The system cannot find the path specified)

at com.sap.tc.logging.FileLogInfoData.getEOLLength(FileLogInfoData.java:432)

at com.sap.tc.logging.FileLogInfoData.getFileHeaderLines(FileLogInfoData.java:348)

at com.sap.tc.logging.FileLogInfoData.getFileHeaderLines(FileLogInfoData.java:334)

at com.sap.tc.logging.FileLogInfoData.loadFileLogHeader(FileLogInfoData.java:320)

at com.sap.tc.logging.FileLogInfoData.init(FileLogInfoData.java:260)

at com.sap.tc.logging.FileLogInfoData.<init>(FileLogInfoData.java:119)

at com.sap.tc.logging.FileLog.init(FileLog.java:373)

at com.sap.tc.logging.FileLog.<init>(FileLog.java:282)

at com.sap.tc.logging.FileLog.<init>(FileLog.java:246)

at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:665)

at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1488)

at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:239)

at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:187)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:327)

at com.sap.engine.services.deploy.server.application.ParallelAdapter.runMe(ParallelAdapter.java:74)

at com.sap.engine.services.deploy.server.application.ParallelAdapter$1.run(ParallelAdapter.java:218)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)

#

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have the same problem. I also see many similar exception from different apps, such as writing to file ".
log
applications
cms
default.0.trc", ".
log
applications
cms
default.0.trc"

Do I have to create log file before I use the logging service.

I change "ForceSingleTraceFile" to "NO" in "LogManager" by Visual Administrator. Could it be a problem?

I am running SAP Web AS 6.4 and deploying using SDM. I have a log-configuration.xml in the ear file. This is my log configuration


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
	<log-formatters/>
	<log-destinations>
		<log-destination 
			count="10" 
			effective-severity="ALL" 
			limit="1000000" 
			name="TraceLog01" 
			pattern="./log/file.%g.trc" 
			type="FileLog"/>
	</log-destinations>
	<log-controllers>
		<log-controller 
			effective-severity="ALL" 
			name="LogController01">
			<associated-destinations>
				<destination-ref 
					association-type="LOG" 
					name="TraceLog01"/>
			</associated-destinations>
		</log-controller>
	</log-controllers>
</log-configuration>

Former Member
0 Kudos

Hi,

I faced the same issue with log4J.properties it was giving the same error.

you try the following options

  • create the a log file in the respective location

  • double check the "\" manytimes it might be "/" also, please make sure of it. It depend on the operating system.

regards

Vivek Nidhi