I would like to know if it is possible to write into the db2 diagnostic facility db2diag.
For example, I have a stored procedure, and I would like to write something in that file.
Is there any API to access to this facility?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to write directly in the db2diag.log file, it is necessary to use the DB2 API, specifically the db2AdminMsgWrite file. The log will indicate that this is a user log, with all the components of a normal db2 log.