All problems
Foundational·🛠️ Developer Tools·Microsoft · Adobe · Salesforce

Design
Logging Framework

Design a logging framework like Log4j or SLF4J — supporting multiple log levels, configurable sinks, and formatted output.

#OOP#Design Patterns
Start Solving 7F + 3NF requirements inside

01 -  Why interviewers ask this

Nearly every engineer has used a logging library, making this a great test of whether you can design a genuinely extensible system (pluggable levels, sinks, and formats) rather than a one-off script.

02 -  Where this system exists in the real world

You interact with this design every day.

Application logging libraries (Log4j, Winston, SLF4J)

Centralized log aggregation pipelines

Audit trail systems for compliance

03 -  What you'll master

Solve this once. Know it forever.

01

Design pluggable log levels and output destinations

02

Apply Singleton and Strategy patterns together

03

Keep the logging API simple while staying extensible

04 -  What you'll design

7 functional · 3 non-functional requirements.

Log at levels: DEBUG, INFO, WARN, ERROR, FATAL

6 more requirements inside

Sign in to unlock the full brief and start designing

Unlock Requirements

05 -  Companies that ask this

You may face this exact question in your next interview.

M
Microsoft
A
Adobe
S
Salesforce

Ready?

Open the canvas.
Design it yourself.

See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.

Start Solving