Hi,
Hi have a console application in main method I will call other class library method.Then actual work starts form the class library method.
My requirement is I want to display status of each method start and end in console, like
method execution started and method execution completed.
problem is all methods are in class libraries and only one method call will initiate form console main method.
eg:
consoleApp:
public static void Main()
{
Library1.Method1();
}
static class Library1
{
public static void Method1()
{
Library2.Method2();
}
}
static class Library2
{
public static void Method2()
{
}
}
I want out put in console like:
Library1.Method1() Started.
Library1.Method1() Ended.
Library2.Method2() Started.
Library2.Method2() Ended.
not onlly method start and end in middle of the code also I need to write some status on console.
Note: only console application main method used to trigger the other methods always will have single method only.
I am not sure how to call this type of requirement or keywords to google.
Any suggestion would be much appreciated and very helpful for me.
Thanks in advance.