Skip to content

Examples of unit testing components that use Strict/LazyLogging #40

@Johnlon

Description

@Johnlon

I have components where I want to unit test their logging side effects.

It would be good if the documentation demonstrated the recommended patterns for testing the logging of code that uses Strict/LazyLogging - apologies if I have missed this.

For now .. It would seem that the two traits require me to leave my classes non-final and override the method defined in the trait - is this the recommendation? Can you confirm if there is a more elegant approach and/or one where I can retain final classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions