Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mpewsey authored Nov 5, 2023
1 parent f0cc0d0 commit a020b78
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,3 @@ pipeline = new Pipeline(new LayoutGenerator(), new CollectableGenerator());
var results = pipeline.Run(args);
var layout = results.GetOutput<Layout>("Layout");
```

## Generation Logger Example

The generators include logging messages that can be subscribed to by adding a delegate to the `Logger`, as shown in the below example.

```Logger.cs
// Have the messages printed to the console.
Logger.AddListener(Console.WriteLine);

// Or added to a list.
var messages = new List<string>();
Logger.AddListener(messages.Add);

// Make sure to have your objects unsubscribe from the event to prevent memory leaks.
Logger.RemoveListener(messages.Add);
```

0 comments on commit a020b78

Please sign in to comment.