'use strict';

const path = require('path');
const fs = require('fs');

const Logs = module.exports;

Logs.path = path.resolve(__dirname, '../../logs/output.log');

Logs.get = async function () {
	return await fs.promises.readFile(Logs.path, 'utf-8');
};

Logs.clear = async function () {
	return await fs.promises.truncate(Logs.path, 0);
};
