A Simple ulog demo that shows that the log configuration does not work as expected in some cases. See Download/ulog#56 and Download/ulog#50 (comment)
const createLogStatements = () => {
log.debug('Logging is easy! (via createLogStatements)')
log.info('Logging is easy! (via createLogStatements)')
log.error('Logging is easy! (via createLogStatements)')
}
function App() {
log.debug('Logging is easy! (via App)')
log.info('Logging is easy! (via App)')
log.error('Logging is easy! (via App)')
return (
<div className="App">
<header className="App-header">
<button onClick={() => createLogStatements()}>Create log statements</button>
</header>
</div>
);
}
The log statements
log.debug('Logging is easy! (via App)')
log.info('Logging is easy! (via App)')
are missing.