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; };