QuestionQ7

Given a scenario, identify how to implement OSGi services and servlets

A developer must create a Logger and Writer pair for the company’s application logging.

Which OSGi configurations should the developer use?

  • A Apache Sling Logging Logger Configuration and Apache Sling Logging Configuration
  • B Apache Sling Request Logger and Apache Sling Logging Writer Configuration
  • C Apache Sling Logging Logger Configuration and Apache Sling Logging Writer Configuration
Explanation

Apache Sling separates logger setup from log-writer setup: the Logger Configuration defines the logger and its output file, while the Logging Writer Configuration defines file output and rotation characteristics for that writer.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!