Skip to content

Commit

Permalink
Unify loggers to be static (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Nov 2, 2024
1 parent 7d01bc3 commit a634041
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/main[co

Bug Fixes (Site Modules)::

* Fix resolution of baseDir for Doxia modules (#968)
* Fix resolution of baseDir for Doxia modules (#968)

Improvements (Site Modules)::

* Unify loggers initialization to be static (#971)

== v3.1.0 (2024-10-30)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
@Component(role = Parser.class, hint = AsciidoctorConverterDoxiaParser.ROLE_HINT)
public class AsciidoctorConverterDoxiaParser extends AbstractTextParser {

private final Logger logger = LoggerFactory.getLogger(AsciidoctorConverterDoxiaParser.class);
private static final Logger logger = LoggerFactory.getLogger(AsciidoctorConverterDoxiaParser.class);

@Inject
protected Provider<MavenProject> mavenProjectProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
@Component(role = Parser.class, hint = AsciidoctorAstDoxiaParser.ROLE_HINT)
public class AsciidoctorAstDoxiaParser extends AbstractTextParser {

private final org.slf4j.Logger logger = LoggerFactory.getLogger(AsciidoctorAstDoxiaParser.class);
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(AsciidoctorAstDoxiaParser.class);

@Inject
protected Provider<MavenProject> mavenProjectProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
public class NoOpNodeProcessor extends AbstractSinkNodeProcessor implements NodeProcessor {

private final org.slf4j.Logger logger = LoggerFactory.getLogger(AsciidoctorAstDoxiaParser.class);
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(NoOpNodeProcessor.class);

/**
* Constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
public class SectionNodeProcessor extends AbstractSinkNodeProcessor implements NodeProcessor {

private final Logger logger = LoggerFactory.getLogger(SectionNodeProcessor.class);
private static final Logger logger = LoggerFactory.getLogger(SectionNodeProcessor.class);

/**
* Constructor.
Expand Down

0 comments on commit a634041

Please sign in to comment.