Exemple #1
0
 /// <summary>
 /// The button 1_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void BtnCallStackDemo_Click(object sender, EventArgs e)
 {
     Mylogger.LogFunctionEnter(StfLogLevel.Info, "Void", "BtnCallStackDemo_Click");
     Mylogger.LogInfo("Someone pressed the CallStackDemo button");
     callStackDemo("Demo");
     Mylogger.LogFunctionExit(StfLogLevel.Info, "BtnCallStackDemo_Click");
 }
Exemple #2
0
        /// <summary>
        /// The call stack demo l 2.
        /// </summary>
        /// <param name="argument">
        /// The argument.
        /// </param>
        /// <returns>
        /// The <see cref="int"/>.
        /// </returns>
        private int callStackDemoL2(string argument)
        {
            var retVal = 42;

            Mylogger.LogFunctionEnter(StfLogLevel.Debug, "Void", "callStackDemoL2");
            Mylogger.LogInfo(string.Format("SomeCounter is [{0}]", SomeCounter++));
            Mylogger.LogFunctionExit(StfLogLevel.Debug, "callStackDemoL2");
            return(retVal);
        }