Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
let online = false;
|
||||
|
||||
module.exports = async function() {
|
||||
try {
|
||||
online = true;
|
||||
console.log('Logger service started!');
|
||||
return { online: online };
|
||||
} catch (err) {
|
||||
console.error('Logger service could not be started:', err);
|
||||
return { online: false, error: err };
|
||||
}
|
||||
};
|
||||
|
||||
// Export online status for other modules
|
||||
module.exports.online = () => online;
|
||||
|
||||
// Setter to change online status from other modules
|
||||
module.exports.setOnline = (value) => { online = value; };
|
||||
Reference in New Issue
Block a user