Neutralino.debug
Neutralino.debug
namespace contains application debugging utilities.
debug.log(message, type)
Writes messages to neutralinojs.log
file or/and standard output streams.
tip
If your application is running via neu run
, you can see log
messages on your terminal.
Parameters
message
String: Content to be logged.type
String (optional): Type of the message. Accepted values areINFO
,WARNING
, andERROR
. The default value isINFO
.
await Neutralino.debug.log('Hello Neutralinojs');
await Neutralino.debug.log('An error occured', 'ERROR');
await Neutralino.debug.log('A warning message', 'WARNING');