Abstract
This article studies the Singleton design pattern and its importance in software. By creating a Logger class using the Singleton pattern, it is shown how to manage logs in the system and centralize data through a single object. Examples are given in the Python programming language.
References
1 . Gamma, E., Helm, R., Johnson, R., Vlissides, J. Design Patterns: Elements of
Reusable Object-Oriented Software. Addison-Wesley, 1994.
2. Lutz, M. Learning Python, 5th Edition. O’Reilly Media, 2013.
3. Python rasmiy hujjatlari – https://docs.python.org/3/
4. Shvets, A. Python Design Patterns. Packt Publishing, 2018.
5. Freeman, E., Robson, E., Bates, B., Sierra, K. Head First Design Patterns. O’Reilly
Media, 2004.
6. Hunt, A., Thomas, D. The Pragmatic Programmer: Your Journey to Mastery.
Addison-Wesley, 2019.
7. Lafore, R. Object-Oriented Programming in Python. Sams Publishing, 2017.
8. Shvets, A. Python Design Patterns: For Sleek and Modern Applications. Packt
Publishing, 2020.
9. Software Foundation.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright (c) 2025 Mirsaid Yusupov , Ruxshona Tursunboyeva (Author)
