Skip to content

Commit

Permalink
Adapt tracing to new std.logger. (#336)
Browse files Browse the repository at this point in the history
Adapt tracing to new std.logger.
  • Loading branch information
veelo authored Sep 7, 2023
1 parent 67fcd03 commit c7061cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/extended_pascal/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ int main(string[] args)

version (tracer)
{
import std.experimental.logger;
import std.logger;
import std.algorithm : startsWith;
sharedLog = new TraceLogger("TraceLog.txt");
sharedLog = cast(shared) new TraceLogger("TraceLog.txt");
bool cond (string ruleName, const ref ParseTree p)
{
static startTrace = false;
Expand Down
4 changes: 2 additions & 2 deletions pegged/peg.d
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ unittest // Run- & Compile-time.
version (tracer)
{
import std.experimental.logger;
import std.logger;
import std.algorithm.comparison : min;
// Function pointers.
Expand Down Expand Up @@ -212,7 +212,7 @@ version (tracer)
Example:
---
sharedLog = new TraceLogger("TraceLog.txt");
sharedLog = cast(shared) new TraceLogger("TraceLog.txt");
---
*/
class TraceLogger : FileLogger
Expand Down

0 comments on commit c7061cf

Please sign in to comment.