Skip to content

Logging best practices #145

@fh-ms

Description

@fh-ms

To follow logger coding conventions and to optimize performance by avoiding unnecessary object allocations, we should consider adding log flag queries to logging statements, at least to those that create parameter objects.

logger.debug("message", params);

should look like

if(logger.isDebugEnabled())
{
    logger.debug("message", params);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions