Skip to main content

Nexys.log()

Returns Promise<void>.


Get Started​

Let's assume you have been configured your Nexys instance.

Example​

nexys.log("Hello World!", { type: "INFO" });

First parameter is the data you want to log. Second parameter is the options for the log. You can check the options below.

Log Options​

OptionTypeDescription
typestringType of the log. You can use whatever you want. Example: ERROR
actionstringAction of the log. You can use whatever you want. Example: LOGIN

Reserved Log Types​

These types are reserved for Nexys. Please do not use these types.

TypeDescription
AUTO:ERRORError logs
AUTO:UNHANDLEDREJECTIONInformation logs
METRICMetric logs