cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Log Configuration

Former Member
0 Kudos

Hello!

I configured log-configuration.xml in Developer Studio in this way:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
	<log-formatters>
		<log-formatter 
			name="FileModuleLogger" 
			pattern="%26d %150l [%t] %10s: %m" 
			type="Trace-Formatter"></log-formatter>
	</log-formatters>
	<log-destinations>
		<log-destination 
			count="5" 
			effective-severity="DEBUG" 
			limit="2000000" 
			name="FMLDestination" 
			pattern="./log/applications/de.FileModule/FML_default.log" 
			type="FileLog">
			<formatter-ref 
				name="FileModuleLogger"></formatter-ref>
		</log-destination>
	</log-destinations>
	<log-controllers>
		<log-controller
			bundle-name="de" 
			effective-severity="DEBUG" 
			name="de.FileModule">
			<associated-destinations>
				<destination-ref 
					association-type="LOG" 
					name="FMLDestination"></destination-ref>
			</associated-destinations>
		</log-controller>
	</log-controllers>
</log-configuration>

Unfortunately after deploying of the ear-project I cannot find it in the Visual Admin. Shouldn´t there be a location-node "de" in the Location-tree? "destinations" and "formatters" also ignore my Logger.

Can anyone see my mistake?

Thank you in advance.

Ilona Seifert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I've the same problem with this configuration, no file exists.

Here is my sample code in webdynpro:

Category cat = Category.getCategory(Category.APPLICATIONS,"P4TSupplierSelfServices");

logger.infoT(cat, "User "ld_strUserid" logged in");

Here the configuration file,

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

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

<log-configuration>

<log-formatters>

<log-formatter

name="p4t.log.format"

pattern="%l %d %s %m"

type="TraceFormatter"/>

</log-formatters>

<log-destinations>

<log-destination

count="N/A"

effective-severity="ALL"

name="p4t.log.dest.applications"

pattern="./log/applications/p4tsss/p4tsss.trc"

type="FileLog">

<formatter-ref

name="p4t.log.format"/>

</log-destination>

</log-destinations>

<log-controllers>

<log-controller

minimum-severity="ALL"

name="/Applications/P4TSupplierSelfServices">

<associated-destinations>

<destination-ref

association-type="LOG"

name="p4t.log.dest.applications"/>

</associated-destinations>

</log-controller>

</log-controllers>

</log-configuration>

Have you solved the problem? If yes, please tell me the way - thank you very much!