UNPKG

@forzalabs/remora

Version:

A powerful CLI tool for seamless data translation.

49 lines (48 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class DebugLogService { constructor() { this.id = 'DevelopmentLogService'; this._folder = 'local_logs'; this._file = 'logs.txt'; this._path = this._folder + '/' + this._file; this.init = () => { return null; }; this.log = (text) => { try { console.log(text); } catch (error) { console.error('ERROR on log', error); } finally { return null; } }; this.info = (text) => { try { console.info(text); } catch (error) { console.error('ERROR on info', error); } finally { return null; } }; this.error = (error) => { try { console.error(error); } catch (error) { console.error('ERROR on error', error); } finally { return null; } }; } } const DebugLogger = new DebugLogService(); exports.default = DebugLogger;