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); }
public override void OnEntry(MethodExecutionArgs args) { DiagManager.LogInfo($"Welcome to Horizon v.{App.CurrentVersion.ToString()}."); DiagManager.LogInfo("Opening splash and program selection window..."); }
public override void OnExit(MethodExecutionArgs args) => DiagManager.LogInfo(this.ExitMessage);
public override void OnExit(MethodExecutionArgs args) { JFile returnValue = args.ReturnValue as JFile; DiagManager.LogInfo($"Loaded File {returnValue.FileName}."); }
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}..."); }