ChatDiagram
Design Patterns · UML · Software Engineering

Singleton Pattern Logger Class Diagram

Type UML Class DiagramStandard OMG UML 2.5.1 §9–§11Engine schematex-umlclassUpdated 6/4/2026
Singleton Pattern Logger Class Diagram
Drawing preview
The request

“Create a UML class diagram for a client that uses a singleton Logger with a static instance, a getInstance method and a log method.”

Then tryAdd a LoggerFactory that returns the Logger.Add a private log level field to Logger.
What is in this drawing

Read the decisions behind it.

01

Logger class with private instance and constructor

02

Static getInstance() method for controlled access

03

Client dependency on Logger through the static method

When a class must have exactly one instance, and a global point of access is needed (e.g., logging, configuration, thread pools).

More like this

Other examples in this family.

Browse all uml class diagram templates →