3

Can anyone explain the difference between the org.apache.logging.log4j.core.Logger and org.apache.logging.log4j.Logger?

Sorry if this is a broad question but most documentation just talks about Logger and I don't know why there are 2 of them. Is there an easy way to convert between them? To put it another way can you explain what core signifies?

1
  • 5
    Have you read the javadoc? Second one in an implementation and second one is only an interface as part of the api. Commented Jun 25, 2019 at 18:56

1 Answer 1

3

It got answered in the comments. core.Logger is an implementation of Logger which is an interface. So if I understand this correctly I should be able to cast instances of Logger into core.Logger Thank you.

Sign up to request clarification or add additional context in comments.

1 Comment

Wouldn't it be the opposite ... you can cast from core.Logger to Logger?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.