summaryrefslogtreecommitdiff
path: root/Year_2/SE/design_patterns/singleton/Logs.java
blob: 85deef90a659b7a57a7cf8ae181b9c994287520d (plain)
1
2
3
4
5
6
7
8
9
10
public class Logs {
    private static Logs log;

    private Logs(){}

    public static Logs getInstanceLogs() {
        if(log == null) log = new Logs();
        return log;
    }
}