UNPKG

jec-sandcat

Version:

JEC Sandcat - The default RESTful web services framework for GlassCat applications.

24 lines (23 loc) 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jec_commons_1 = require("jec-commons"); class SandcatLoggerProxy extends jec_commons_1.AbstractLoggerProxy { constructor() { super("[SANDCAT]"); if (SandcatLoggerProxy._locked || SandcatLoggerProxy.INSTANCE) { this.throwSingletonError("SandcatLoggerProxy"); } SandcatLoggerProxy._locked = true; } static getInstance() { if (SandcatLoggerProxy.INSTANCE === null) { SandcatLoggerProxy._locked = false; SandcatLoggerProxy.INSTANCE = new SandcatLoggerProxy(); } return SandcatLoggerProxy.INSTANCE; } } SandcatLoggerProxy.INSTANCE = null; SandcatLoggerProxy._locked = true; exports.SandcatLoggerProxy = SandcatLoggerProxy; ;