"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Abstractlog_1 = require("./Abstractlog");
class Log extends Abstractlog_1.AbstractLog {
    constructor() {
        super("steem-wise-core");
    }
    init() {
        super.init([
            process.env.WISE_CORE_LOG_LEVEL,
            process.env.WISE_LOG_LEVEL,
            "info"
        ]);
    }
    static log() {
        /**
         * It is very important not to call constructon in the field scope. Calling it with the following if
         * is the only way in typescript to achive true singleton scoped to a single project (steem-wise-core
         * package here.)
         */
        if (!Log.INSTANCE) {
            Log.INSTANCE = new Log();
            Log.INSTANCE.init();
        }
        return Log.INSTANCE;
    }
}
exports.Log = Log;
//# sourceMappingURL=log.js.map