Skip to content

Commit

Permalink
[Cleanup] Moving PJsonFormatter to PCheckerLogJsonFormatter and movin…
Browse files Browse the repository at this point in the history
…g PLogFormatter to PCheckerLogTextFormatter
  • Loading branch information
Christine Zhou committed Aug 21, 2024
1 parent 1825fe4 commit 8113251
Show file tree
Hide file tree
Showing 8 changed files with 613 additions and 943 deletions.
519 changes: 0 additions & 519 deletions Src/PChecker/CheckerCore/PRuntime/PJsonFormatter.cs

This file was deleted.

215 changes: 0 additions & 215 deletions Src/PChecker/CheckerCore/PRuntime/PLogFormatter.cs

This file was deleted.

4 changes: 2 additions & 2 deletions Src/PChecker/CheckerCore/StateMachines/Logging/JsonWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public LogEntry()
public class LogDetails
{
/// <summary>
/// The text log from PLogFormatter. Removes the log tags.
/// The text log from PCheckerLogTextFormatter. Removes the log tags.
/// I.e., no &lt;SomeLog&gt; in the beginning.
/// Available for all log types.
/// </summary>
Expand Down Expand Up @@ -557,7 +557,7 @@ public JsonWriter()

/// <summary>
/// Enum representing the different log types the JSON error trace logs.
/// Referenced from PLogFormatter.cs and PCheckerLogTextFormatter.cs
/// Referenced from PCheckerLogTextFormatter.cs and PCheckerLogTextFormatter.cs
/// to see what those formatter logs. Check IStateMachineRuntimeLog.cs to see
/// each log types' description and when they are invoked.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion Src/PChecker/CheckerCore/StateMachines/Logging/LogWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Linq;
using PChecker.StateMachines.Events;
using PChecker.IO.Logging;
using PChecker.PRuntime;

namespace PChecker.StateMachines.Logging
{
Expand Down Expand Up @@ -602,7 +603,7 @@ internal void RegisterLog(IStateMachineRuntimeLog log)
}
}

// If log is or of subclass PCheckerLogJsonFormatter (i.e. when log is PJsonFormatter),
// If log is or of subclass PCheckerLogJsonFormatter (i.e. when log is PCheckerLogJsonFormatter),
// update the Writer reference to the JsonLogger instance defined within LogWriter.cs
if (log is PCheckerLogJsonFormatter tempJsonFormatter)
{
Expand Down
Loading

0 comments on commit 8113251

Please sign in to comment.