A logger action.
Write DEBUG message.
import log from '@egomobile/log'log.debug('foo')
Write ERROR message.
import log from '@egomobile/log'log.error('foo')
Write INFO message.
import log from '@egomobile/log'log.info('foo')
Write TRACE message.
import log from '@egomobile/log'log.trace('foo')
Write WARNING message.
import log from '@egomobile/log'log.warn('foo')
Sets a new log filter.
import log, { LogType } from '@egomobile/log'log.filter((type: LogType, args: any[]) => { // no debug or trace return type <= LogType.Info})
LoggerMiddleware Argument is not (null) and not (undefined) and no function.
The new filter.
Resets that instance.
import log, { LogType } from '@egomobile/log'log.reset().use((type: LogType, args: any[]) => { // your code here})
Adds one or more middlewares.
import log, { LogType } from '@egomobile/log'log.use((type: LogType, args: any[]) => { // your code here})
LoggerMiddleware At least one element is not a function.
Generated using TypeDoc
A logger action.