Example #1
0
 public override void OnException(MethodExecutionArgs args)
 {
     DiagManager.Log(this.ExceptionMessage, this.ExceptionLevel);
     DiagManager.Log($"Exception: {args.Exception.Message}", this.ExceptionLevel);
     DiagManager.Log($"Source: {args.Exception.Source}", this.ExceptionLevel);
     DiagManager.Log($"Inner Exception: {args.Exception.InnerException?.Message ?? "null"}", this.ExceptionLevel);
     DiagManager.Log($"Method Name: {args.Method.Name}", this.ExceptionLevel);
     DiagManager.Log($"Stack Trace: {args.Exception.StackTrace}", this.ExceptionLevel);
 }
Example #2
0
 public override void OnEntry(MethodExecutionArgs args)
 {
     DiagManager.LogInfo($"Welcome to Horizon v.{App.CurrentVersion.ToString()}.");
     DiagManager.LogInfo("Opening splash and program selection window...");
 }
Example #3
0
 public override void OnExit(MethodExecutionArgs args) => DiagManager.LogInfo(this.ExitMessage);
Example #4
0
        public override void OnExit(MethodExecutionArgs args)
        {
            JFile returnValue = args.ReturnValue as JFile;

            DiagManager.LogInfo($"Loaded File {returnValue.FileName}.");
        }
Example #5
0
        public override void OnEntry(MethodExecutionArgs args)
        {
            string path = Path.Combine(args.Arguments[0].ToString(), args.Arguments[1].ToString());

            DiagManager.LogInfo($"Attempting to load file {path}...");
        }