lundi 5 février 2018

Why Logger is singleton not static?

I was reading some materials online for singleton vs static class. Some of them mentioned if the class doesn't maintain state, you should use static class not singleton. However, as far as I know, Logger class is singleton not static class. But I didn't see any state it actually maintain here. Am I wrong on it? Or anything I didn't see? Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire