@samatawy/rules
    Preparing search index...

    Class MemoryLogger

    Logger implementation that stores events in memory for later inspection. This is useful for tests, debugging tools, or UIs that want to inspect logs programmatically.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    events: LoggedEvent[] = []

    Methods

    • In case your logger buffers logs, flush should be called at the end of execution to ensure all logs are written out. If your logger does not buffer logs, you can leave this method empty.

      Returns void