From a020b785cb790d318cc511d007c19c0cdfe49e00 Mon Sep 17 00:00:00 2001 From: Matt Pewsey <23442063+mpewsey@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:52:15 -0500 Subject: [PATCH] Update README.md --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index 78d3587e..5d1cda95 100644 --- a/README.md +++ b/README.md @@ -189,19 +189,3 @@ pipeline = new Pipeline(new LayoutGenerator(), new CollectableGenerator()); var results = pipeline.Run(args); var layout = results.GetOutput("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(); -Logger.AddListener(messages.Add); - -// Make sure to have your objects unsubscribe from the event to prevent memory leaks. -Logger.RemoveListener(messages.Add); -```