09-04-2008 2:38 PM
Hi,
is there any possibilty to get following information:
I want to program a logging tool. You can create a logging object and use some methods like
xxxxx->add_msg(msg) to put logging information to the logging object.
but i also want to find out, from which class/object/runtime environment this msg comes.
example:
class CL_ABC uses the logging tool and does following call:
....
lo_logger = CL_logger->get_logger().
lo_logger->add_msg( 'test the code' ).
....
now the method ->add_msg() in logger object is called. inside this method, i want to have the information, from which class/object the ->add_msg() method is called. after the call, the logging object must have this information like:
CALL_CLASS: CL_ABC
CALL_LINE: 83
MSG: test the code
any ideas?
09-04-2008 3:08 PM
09-04-2008 3:08 PM
11-11-2008 1:55 PM
Thank you for answer Alejandro Bindi. your answer solved the problem