Check condition. Log error if condition fails
Condition to check
Optional
message: stringMessage 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.
Log message of given severity category, overriding Name of module logging
Name of module logging
Logging category
Message to show.
Static
checkUtility: Check condition without creating class instance. see Logger.check
Cogs.js runtime instance
Name of module logging
Condition to check
Optional
message: stringMessage to show.
Input condition.
Static
createStatic
exceptionUtility: Log exception without creating class instance. see Logger.log
Cogs.js runtime instance
Name of module logging
Message to show.
Exception object
Static
logUtility: Log without creating class instance. see Logger.log
Cogs.js runtime instance
Name of module logging
Logging category
Message to show.
Cogs.js logger. Passes logging information back to print function passed when creating the Cogs.js Control instance, e.g. settings.print.
Example