Check condition. Log error if condition fails
Condition to check
Optional Message to log if error
Input condition.
Log exception. Shows passed message with exception info (optional e.message + m.stack)
Message to show.
Exception object
Log message of given severity category
Logging category
Message to show.
StaticcheckUtility: Check condition without creating class instance. see Logger.check
Cogs.js runtime instance
Condition to check
Optional Message to log.
Input condition.
StaticcreateStaticexceptionUtility: Log exception without creating class instance. see Logger.log
Cogs.js runtime instance
Name of module logging
Message to show.
Exception object
StaticlogRoot logging function
Cogs.js runtime instance
Source of log message
Logging category
Message to show.
Staticlog
Cogs.js logger. Passes logging information back to print function passed when creating the Cogs.js Control instance, e.g. settings.print. . Usage: class CogsClass { private Logger logger; constructor(Cogs.Runtime runtime) { this.logger = Logger.create(runtime, 'CogsClass'); } doSomething(ok: boolean) { this.logger.check(ok, 'doSomething param check'); this.logger.log(LogCategory.Info, 'Staring doing something'); try { ... } catch(err) { this.logger.exception('my code failed', err); } } }