cancel
Showing results for 
Search instead for 
Did you mean: 

not want to write in Default trace file.

Former Member
0 Kudos
98

Where should i need to change so that logs should not goes into the default trace log file.

Thanks

Karan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

reward points if helpful

Answers (5)

Answers (5)

vasil_vasilev
Employee
Employee
0 Kudos

Hi

it is a nice question, but the answer is not so simple - let me describe you the main idea behind the default trace file... (and the SAP Java(TM) logging at all)

INTRODUCTION

for every location or category (called with common name 'controller') you should have a so called "destination". Controllers are the sources of the log messages described as one of:

1) Location - the packages of the classes that writes the log message (for example "com.sap.engine.boot" or just "System.out");

2) Category - the logically described part of the system (for example "/Applications/Common/Security" or "/System/Database").

Destinations are file locations on the file system. Destinations a associated with controllers, but if there is a controller that is not associated with any destination it appears in defaultTrace file.

SOLUTION

Please open Visual Administrator and from LogConfigurator Service of the cluster nodes you can see all locations and categories that are registered for your system (see both tabs on the right side). Now you have to switch to advanced mode (there is such button [switch to advanced mode]) and you will see all destinations and formatters (the formatters are used to structure the content of the log files). The step one is to add destination for every single controller (in order logs from this controller to be written in the specified destination instead of default trace). This could happen if you create destination & assign the newly created destination for every controller.

The step two is to go to Log Manager and to set option ForceSingleTraceFile=NO

NOTE: First you could try only the second step and to check system behavior after it. I am not sure if only this is sufficient to solve the issue (I did not have try it - it just appears to me in this very moment).

After all those hard work you will have separate destinations (different from default trace) for each and every location and category. All log messages that are produced from all controllers will be written to those new destinations and default trace should be empty.

I hope that this information is all that you need, but if you have any further questions just write in this topic.

Best Regards,

Vasil

Former Member
0 Kudos

how can i go the activation and deactivation traces from where i can do this and further.

we as developer do this or i need to ask either portal admin or SAP BASIS person.

Edited by: Karan Mittal on Feb 15, 2008 6:23 PM

Former Member
0 Kudos

Hi

if u have the NWA role, only then u can go to these files, else u need to ask the basis team to help u out.

Former Member
0 Kudos

How i can i go into this files.

Former Member
0 Kudos

there is nothing in that blog to avoid writing in default trace.

Where should i need to change in VA or somewhere else please let meknow.

Former Member
0 Kudos

Hi Karan,

May be you can try out this option:-

[Activating and Deactivating Traces|http://help.sap.com/saphelp_nw04s/helpdata/en/5a/46595010f6477f96c81ff65db2ed2d/content.htm]

[Trace Properties|http://help.sap.com/saphelp_nw70/helpdata/en/bb/9f14104b9b11d189750000e8322d00/frameset.htm]

[Trace_show properties|http://help.sap.com/saphelp_nw70/helpdata/en/ea/77751b4d0111d4aa1100a0c9430730/frameset.htm]

Hope this helps,

Regrds,

Shailesh Nagar

Former Member
0 Kudos

Thanks for the reply Bala.

My question is still intact, I don't want to write any logs in the default trace log file, i want to write in a separate.

I am able to write in a separate file i.e. ok with me But along with it is writing same logs in the default trace log file i don't want, that it should wriite in the default trace log file.

There is any setting i need to change or i have to write any code please let me know

Former Member
0 Kudos

there should be some option in the log viewer or log configuration in VA.follow the same blog which i mentioned above and set the log severity to none

reward points if helpful