STUDYING THE SINGLETON PATTERN AND WRITING A LOGGER CLASS
PDF

Keywords

Singleton, Logger, design pattern, object-oriented programming, centralized management.

How to Cite

STUDYING THE SINGLETON PATTERN AND WRITING A LOGGER CLASS. (2025). Global Journal of Innovation and Studies in Interdisciplinary Research, 1(4), 38-41. https://thepublishgate.com/index.php/globaljournal/article/view/154

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.

PDF

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.

Python https://docs.python.org/3/tutorial/classes.html

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Copyright (c) 2025 Mirsaid Yusupov , Ruxshona Tursunboyeva (Author)

Downloads

Download data is not yet available.