Skip to content

Generation of logger inside methods #365

@java-coding-prodigy

Description

@java-coding-prodigy

Describe the bug
DatabaseProvider generates new loggers inside its methods

Expected behavior
The logger should be put into a private static field called logger

Additional context
Occurences:

  1. line 37
catch (final SQLException e) {
            LoggerFactory.getLogger(DatabaseProvider.class)
                .error("Exception while creating Database.", e);
            throw new FatalBeanException("Could not create Database.", e);
        }
  1. line 49
catch (final IOException e) {
            LoggerFactory.getLogger(DatabaseProvider.class)
                .error("Exception while creating Database-Path.", e);
        }

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions