0 day streak
Anonymous · shared experience20 Sept 2025 · 5 views

Palo Alto Networks: Design and code a logger with verbosity levels

Interview question #Palo Alto Networks DSA / coding

Problem. Design and implement a logger class that only outputs messages at or above a chosen verbosity level.

Context. This came up in the final day of a Machine Learning Engineer loop, alongside two system design rounds and ML concepts, so the coding round leaned toward clean class design.

What to cover. An ordered set of levels such as DEBUG, INFO, WARN and ERROR, a configurable threshold, a method per level or a single log method taking a level, and pluggable outputs. Mention thread safety if logs come from many threads.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.