Skip to content

When no src/main/resources/log4j.properties snow error does not show #43

@jeremychone

Description

@jeremychone

Step to reproduce

  • Create a class with a @webget or something
  • Do not add the @singleton on the class
  • Have the slf4j-log4j12 in the pom.xml
  • Do not have a log4j.properties
  • use mvn jetty:run
  • Start the app, and go to any URL

Actual result

  • The page is blank and no error on the system log.

The problem, is that if there is no src/main/resources/log4j.properties in the source, then, we do not see the error on snow. In this case, Snow cannot start because it requires to have @singleton on any class that have @web... methods, but because the developer does not see the error, it is very hard to find out why.

Proposed solution

We need to find a way that even of the log4j.properties has not be configured but the slf4j-log4j12 is present, we still log those errors to the console.

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