Who uses Application Logs?
Hey there, I just wanted to understand more about the usage of application logs. Do any of you use it for debugging/analysis purposes of your applications? For those that use it, would you mind explain how you use it etc.
Sorry, I'm pretty much an ABAP newbie.
I used Application Logs to get errors or other messages for RFC Calls etc in most of my Custom BAPIs.
See this\
http://help.sap.com/saphelp_nw04/helpdata/en/3a/c8263712c79958e10000009b38f936/content.htm
It doesnt help you much but definetly gives you some idea.
There are a bunch of function modules to help in getting Application Logs. Theoritically an Application Log is similar to System Log. But System Log is for the whole SAP system where are an Application log is specific to the Custom Object (and sometimes even sub-object) that you create and assign to.
Pros: If improves performance by reducing number of database hits and writing the logs locally.
Cons: A lot of effort is needed for initial setup.
If this helps, award points suitably.
Similar Messages
-
How to use Application log (slg0 & slg1)
Hi all,
Can u please give me some hints to utilize Application log?
Hope you will help me.
Thanq in advance,
Bye.hi John,
Check these FM's out
BAL_GLB_SEARCH_LOG
BAL_LOG_CREATE
BAL_LOG_EXC_ADD
BAL_LOG_HDR_CHANGE
BAL_LOG_HDR_READ
BAL_LOG_MSG_ADD
BAL_LOG_MSG_ADD_FREE_TEXT
BAL_LOG_MSG_CHANGE
BAL_LOG_MSG_CUMULATE
BAL_LOG_MSG_DELETE
BAL_LOG_MSG_DELETE_ALL
BAL_LOG_MSG_READ
BAL_LOG_REFRESH
SBAL_DETAIL Application Log: Display: Detail Screens
BAL_DSP_LOG_PARAMETERS Application Log: Display: Display log header parameter set
BAL_DSP_LOG_TECHNICAL_DATA Application Log: Display: Display log header technical data
SBAL_DISPLAY Application Log: Display Log
BAL_DSP_LOG_DISPLAY Application Log: Fullscreen log output
BAL_DSP_LOG_PRINT Application Log: Print log
SBAL_PROFILE Application Log: Display Profile
BAL_DSP_PROFILE_SINGLE_LOG_GET Application Log: Display profile: Standard profile (SLG1) for one log
SBAL_SERVICE Application Log: Service Functions
BAL_LOG_HDR_CHECK Application Log: Log: Header data: Check
BAL_LOG_MSG_CHECK Application Log: Log: Message: Check
SBAL_TOOLBOX Application Log: Toolbox
BAL_DB_LOGNUMBER_GET Application Log: Database: Get internal log number from number range
BAL_LOG_DELETE Application Log: Log: Delete log (from DB also at save)
BAL_LOG_EXIST Application Log: Log: Check existence (in memory)
BAL_LOG_MSG_EXIST Application Log: Log: Message: Check existence (in memory)
BAL_LOG_MSG_REPLACE Application Log: Log: Message: Replace last
BAL_STATISTICS_LOG_GET
BAL_STATISTICS_LOG_SET
Regards,
Santosh
Note: Reward Points if helpful -
Disabling app_dfefault_island folder when using application log
Hello. Is there a way to OC4J use the exactly log path setted in orion-application.xml ? I mean, I edited orion-application.xml to something like
<log>
<file path="file:///c:/apps/myApp.log" />
</log>
but when I start server, I have my log saved in C:/apps/MyOC4JInstance_default_island_1/myApp.log instead of C:/apps/myApp.log.For XI r2, try turning off DEP. It could have something to do with XI r2 runtime not being compiled with the /NX switch
Try running the app pool in u201CClassicu201D mode rather than u201CIntegratedu201D mode for CR XI r2 or CR 2008.
If it is permissions, try running processmon to see where the access issue is occurring. ProcMon can be downloaded from here:
http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx
Ludek -
This is from apple japan,inc.
I was to play my favorite game but then it was drained.i charged it then after a while i tried opening then a bluescreen appeared before apple logo showed
-
Application Logging questions, SLG0
Hello all,
I have a couple of generic questions I would like to ask the users of this forum.
1. The people that are using application logging, in what types of situations do you use this functionality, interface programming, updating custom tables, etc.?
2. People that are aware of this functionality and are not using it, why are you not using it?
SAP help documentation has pretty good information about the different function modules that are part of this product.
Thanks
BruceHi Bruce;
As part of the SAP's AII (Auto-ID) production, we use SLG1 extensively because that is where all of the application errors are stored by the system when it processes inbound or outbound messages.
The biggest pro is that it consolidates all of the logging information; the biggest con is that it is hard to search through all that information for a particular message, unless the document number is part of the message. It can be a challenge to find a particular log entry when there can be upwards of 2,500 in one day.
Cheers,
John -
Hello,
we are trying to use application logging feature provided with ABAP by way of function modules BAL_LOG_ADD/SAVE etc. the results of these are visible in trasnaction SLG1.
In our scenario, we want to keep track of different abnormal situations which a background Job of a user with dialogue operation faces. So these situations could be part of a successful or un-successful transactions i.e. there could be and overall COMMIT or ROLLBACK for each transactions for which the log operations have been carried out.
Now the problem is that , the Logs are not getting saved for unsuccessful transactions i.e. where there is no COMMIT.
I need your help to get over this situation so that I able to save the Logs (in standard Log objects which are visiible in SLG1) even if the business transaction is not committed.
regards
SushilHow come code always looke like this? I cut and pasted it right in my replay. Highlighted it, and selected "code"?
Oh well, here is the FM I call I tried several times to get it to display properly.
FUNCTION ziu_message_logging.
*"*"Local interface:
*" IMPORTING
*" REFERENCE(I_LOG_OBJECT) TYPE BALOBJ_D
*" REFERENCE(I_EXTNUMBER) TYPE STRING
*" TABLES
*" T_LOG_MESSAGE STRUCTURE ZZLOG_MESSAGE
*" EXCEPTIONS
*" LOG_HEADER_INCONSISTENT
*" LOGGING_ERROR
CONSTANTS: c_message TYPE syst-msgid VALUE 'ZMESSAGE',
c_999 TYPE syst-msgno VALUE '999'.
DATA:
l_log_handle TYPE balloghndl,
l_s_log TYPE bal_s_log,
l_dummy TYPE string,
l_ext_no TYPE bal_s_log-extnumber,
l_s_mdef TYPE bal_s_mdef.
* IF t_log_message[] IS NOT INITIAL.
l_s_log-object = i_log_object.
l_ext_no = i_extnumber.
l_s_log-extnumber = l_ext_no.
* Create the log with header data
CALL FUNCTION 'BAL_LOG_CREATE'
EXPORTING
i_s_log = l_s_log
IMPORTING
e_log_handle = l_log_handle
EXCEPTIONS
log_header_inconsistent = 1
OTHERS = 2.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
RAISE log_header_inconsistent.
WHEN OTHERS.
RAISE logging_error.
ENDCASE.
ENDIF.
l_s_mdef-log_handle = l_log_handle.
* Set the default value
CALL FUNCTION 'BAL_GLB_MSG_DEFAULTS_SET'
EXPORTING
i_s_msg_defaults = l_s_mdef
EXCEPTIONS
others = 0.
* Loop the message table and write the messages into the log
LOOP AT t_log_message.
* Use the message type ZMESSAGE and msg no 999
* Issue the message in a dummy variable
MESSAGE ID c_message TYPE t_log_message-msgty NUMBER c_999
WITH t_log_message-msg_text_1 t_log_message-msg_text_2
t_log_message-msg_text_3 t_log_message-msg_text_4
INTO l_dummy.
* The parameters set by message statement will be used
* Add the message in the log
PERFORM msg_add.
ENDLOOP.
* save logs in the database
CALL FUNCTION 'BAL_DB_SAVE'
EXPORTING
i_save_all = 'X'
EXCEPTIONS
log_not_found = 1
save_not_allowed = 2
numbering_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* ENDIF.
endfunction.
* FORM MSG_ADD
* Add the message to the log
FORM msg_add.
DATA:
l_s_msg TYPE bal_s_msg.
* define data of message for Application Log
l_s_msg-msgty = sy-msgty.
l_s_msg-msgid = sy-msgid.
l_s_msg-msgno = sy-msgno.
l_s_msg-msgv1 = sy-msgv1.
l_s_msg-msgv2 = sy-msgv2.
l_s_msg-msgv3 = sy-msgv3.
l_s_msg-msgv4 = sy-msgv4.
* add this message to log file
* (I_LOG_HANDLE is not specified, we want to add to the default log.
* If it does not exist we do not care =>EXCEPTIONS log_not_found = 0)
CALL FUNCTION 'BAL_LOG_MSG_ADD'
EXPORTING
* I_LOG_HANDLE =
i_s_msg = l_s_msg
EXCEPTIONS
log_not_found = 0
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.
Edited by: Tom Matys on Mar 9, 2010 1:15 PM -
How can I know which applications were opened by someone else who used my computer?
I'd like to know how to interpret the logs that I get in Console to figure out which applications and which files were opened by someone who used my computer. Thanks for any help you might be able to offer!
If you go to Settings > General > About > Diagnostics & Usage > Diagnositic & Usage Data you can see what was used if it returns an error of any kind.
-
WDA - Contrast Using Message Manager & Application Logs
Hi there, I'm trying to figure out when it is appropriate to use each. Thus far, it seems that the conclusion that I am coming upon is that the message manager is used for issuing messages at an application user, whereas the application logs should be used to address issues meant for an administrator of the application - basically someone who may be more technical. How is this assumption? Can someone provide me with more inside. I'd love to understand some real life usages. I've read documentation after documentation, but in short, it would be great to leverage off of some who have actually used this in practice.
Thanks in advance.Hi Michael
> Thus far, it seems that the
> conclusion that I am coming upon is that the message
> manager is used for issuing messages at an
> application user, whereas the application logs should
> be used to address issues meant for an administrator
> of the application - basically someone who may be
> more technical.
As I can see from my point of view the main area of using IWDMessageManager is to indicate to user what is wrong with data he or she is trying to change over UI. For example, to show message "The field XXX must not be empty" or to make another kind of validation of input data on UI level.
The main purpose of logging is to trace possible Java exceptions, to trace debugging information (with severity DEBUG), to log some critical errors for technical staff or administrators. The information from the logs can be unhelpful for end-user.
BR
Sergei -
Any guidelines using RSAL_LOG_WRITE to post message in the application log
Hi SDN!
I've programmed a rather complex extractor. As most you will know, the real test is when the extractor goes live in productions;-) So in order to be able to check if everything works as designed - I've customized the extractor in order to post more or less entries in the application logs - This setting can be alterered in the uses system directly.
I've tested the functionality using RSA3 and the application log is filled as expected. The Application log object is RSFH and everything shows up fine. When tring to use it from BW - The application log gets no entries under object RSAP (Where they normally will end up).
I'm using the function module RSAL_LOG_WRITE to add entries to the same log as the macroes LOG_WRITE uses.
Does anybody have any experiance adding entries to the standard application log in the source system when extracting data into BW?
Best Regards
Søren HansenSorry Arkesh,
I to don't know that how to install the jar files, actually thats the role of BASIS guys.
Watch the below threads for which jar files we need to deploy and how to deploy the jar files
Re: Required jar files for using jdbc adapter
Re: Error in JDBC adapter -
Use SAP logging in my application
HI,
I would like to use SAP logging in my application. i have written a web application on KM. i would like to enable SAP logging on it.
can anybody point me t useful resources to use SAP logging in application.
Any help appreciated.
Thanks,
DiptiHi,
You can use SAP Logging APIs for the same, please refer the below link for more information.
http://help.sap.com/saphelp_nw70/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm
Regards,
Smita. -
What are F. M's used for creating application log in application server
Hello
plz suggest which F.M's i have to use to create application log
Regards
KanthHi Kanth,
You can go through the following Function Modules :
Application Log Maintenance
(i)APPL_LOG_DELETE With this function module you delete logs in the database according to specified selection conditions
(ii)APPL_LOG_DISPLAY With this function module you can analyze logs in the database.
(iii)APPL_LOG_DISPLAY_INTERN With this function module you can analyze logs in local memory, e.g. when you have only collected log records at runtime and do not want to write to the database.
(iv)APPL_LOG_INIT This function module checks whether the specified object or sub-object exists and deletes all existing associated data in local memory.
(v)APPL_LOG_READ_DB With this function module you read the log data in the database for an object or sub-object according to specified selection conditions.
(vi)APPL_LOG_READ_INTERN With this function module you read all log data whose log class has at least the specified value, from local memory, for the specified object or sub-object.
(vii)APPL_LOG_SET_OBJECT With this function module, you create a new object or sub-object for writing in local memory. With a flag you can control whether the
(viii)APPL_LOG_WRITE_u2026 messages are written in local memory or are output on the screen.
(ix)APPL_LOG_WRITE_DB With this function module you write all data for the specified object or sub-object in local memory to the database. If the log for the object or sub-object in question is new, the log number is returned to the calling program.
(x)APPL_LOG_WRITE_HEADER With this function module, you write the log header data in local memory.
(xi)APPL_LOG_WRITE_LOG_PARAMETERS With this function module, you write the name of the log parameters and the associated values for the specified object or sub-object in local memory. If this function module is called repeatedly for the same object or sub-object, the existing parameters are updated accordingly. If you do not specify an object or sub-object with the call, the most recently used is assumed.
(xii)APPL_LOG_WRITE_MESSAGE_PARAMS With this function module you write a single message, with parameters, in local memory. Otherwise the function module works like
(xiv)APPL_LOG_WRITE_SINGLE_MESSAGE.
(xv)APPL_LOG_WRITE_MESSAGES With this function module you write one or more messages, without parameters, in local memory.
(xvi)APPL_LOG_WRITE_SINGLE_MESSAGE With this function module you write a single message, without parameters, in local memory. If no header entry has yet been written for the object or sub-object, it is created. If you do not specify an object or sub-object with the call, the most recently used is assumed.
Regards,
Swapna. -
By what time zone does Verizon use to log data usage? When I checked my current usage, there is data used logged in at early morning times and I don't have anyone else who is up at these times. I also have 1.8+ GB charged to my allowance that I don't understand at all how it is mine because the highest I've ever logged at any given time has been barely 0.5 GB. I'm cruising along at .04-.07 GB and all of a sudden appears a 1.8+ GB deduction/usage and it makes me wonder what the ???? is going on. Is Verizon posting fraudulent usage amounts just to drive up my usage so I have to buy more Gigs?
The time is not the time of actual use, but the time a tower reports the use. The data would have been used anytime prior to that time. Usually, but no always, the usage happened between the time prior and the time reported.
For example:
9:00 AM 1.23 MB
7:05 AM 0.01 MB
1:15 AM 350.03 MB
8:00 PM 23.89 MB
This does not indicate 350 MB was used at 1:15 AM. It really tell you 350 MB was used sometime between 8:00 PM and 1:15 AM.
The times are local time zone as far as I can tell. -
Dynadock U10 whith applications who use GDI+
Hi,
I work for a publisher of software who use Gdi+ for graphism on windows forms.
I have a client who have problem with my application and Dynadock U10.
The application works great on his screen 's laptop, but when he put the application on the screen behind the dynadock, all the parts of the screen which are displaying with GDI+ aren't display well : He must pass the mouse over for seing them !
My client has a Windows XP laptop and the driver for dynadock is up to date.
What can I do with dynadock U10 for my application works ?
Bests regards> What can I do with dynadock U10 for my application works ?
Dynadock U10 use the graphic chip from displaylink
You should ensure that the client has installed the latest driver from this page:
http://www.displaylink.com/support/downloads.php
Furthermore you should ensure your app is fully compatible with this driver -
I Received an email stating my Apple ID was used to log into find my iPhone on an iPhone 5s. Problem is it wasnt me... Is it possible to figure out who/where did it other than it was an iPhone 5s?
Change your apple id password and if sucessfull - you secured yourself.
-
Failed to search the log and log repository using Application Server Contro
I installed the OAS 9.0.4(10g) and tried to use Application Sever Control to search the log files or log repository. However, each time I clicked the Search button, the error page showed the following messages:The operation cannot be performed because the page contains expired data. The data will be automatically refreshed so you can try your operation again.
I checked the emias.log and something like following existed:
ERROR chart.EmChartCacheWorker getCachedChart.505 - EmChartCacheWorker.getCachedChart: 4abdc63146b7578d9853d1adc2aec4245fbf113b.png
EXCEPTION: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
2004-09-14 11:27:37,414 [HttpRequestHandler-24691856] ERROR chart.EmChartBean getChartImage.2662 - ERROR generating chart image: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2655 - EXCEPTION while generating chart image [id]: 030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png
2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2658 - java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png.png (No such file or directory)
I searched the directory specified in the emias.log and found it was empty!
So what should I do to avoid this problem?
Thanks in advance!Thank you.
When you fire the processes to the report server you
can trace the report with the following parameter:
RWCLIENT.EXE SERVER=my_server
TRACEFILE=c:\my_trace.trc
TRACEMODE=TRACE_REPLACE
TRACEOPTS=TRACE_ALL
Maybe you are looking for
-
Blank PAge when Launching WEB IC from Portal--Very Urgent
Hi, We are using CRM 5.0 EIC scenario We have just configured new application server (adding one more to existing servers), when we lauch EIC (interaction centre) from this new server, it shows nothing, it just displays blank page, Need very very urg
-
Sync encountered an error while synchronising: Unknown error
I'm using Firefox 4.0.1 on Windows 7 Home Premium 64-bit. I set up a sync account to transfer my history, etc. from my old desktop to my new laptop (details above). Since then, i haven't used my desktop, just the laptop. For about the last week or so
-
Find all unchecked exceptions thrown by method?
Dear all, I am writing critical code that must be correct. Thus, I wish to know that I have not overlooked any important unchecked exceptions. I am aware that the distinction between unchecked and checked exceptions is controversial, and I know the d
-
Drop in place not working, everything sticks to the next item in timeline
Hello I've clearly clicked a button, but I don't know which one. On all the other edits I've worked on in the last few months I could drop anything I liked into any point on the timeline, and it would sit there. An edit I've been wokring on the last
-
The "Remember Password" is faded out and unable to check
I had a password I changed and old one kept saving. I clicked not to save so I could redo. Now the 'REMEMBER PASSWORD" under tools is faded and unable to check. I have to input passwords EVERY TIME and there are sooooooo many it's a lot of frustratio