ChatDiagram
Design Patterns · UML · Software Engineering

Singleton Pattern Logger Class Diagram

유형 UML 클래스 다이어그램표준 OMG UML 2.5.1 §9–§11엔진 schematex-umlclass업데이트됨 2026. 6. 4.
Singleton Pattern Logger Class Diagram
Drawing preview
요청 내용

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

그렇다면Add a LoggerFactory that returns the Logger.Add a private log level field to Logger.
이 도면에 담긴 내용

그 이면의 의사결정을 읽어 보세요.

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).

모든 UML 클래스 다이어그램 템플릿 보기 →