0.0.6 • Published 3 years ago

playnix-browser v0.0.6

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
3 years ago

Playnix for Browsers

npm node size

playnix.init

Initializes the playnix client.

playnix.init(API_KEY, { debug:Boolean });

API_KEY: application api key options: configurations options.debug: logger debug mode. True will display errors in console.

lognetic.writeException

Sends a error exception.

lognetic.writeException(error, data);

error (required): a JavaScript Error object data: additional data to send(must contains values of string, number, or boolean)

lognetic.writeMessage

Sends a custom info-level message.

lognetic.writeMessage(message, data);

message (required): the custom message to log data: additional data to send(must contains values of string, number, or boolean)

playnix.writeEvent

Sends a custom info-level message.

playnix.writeMessage(message);

message (required): the custom message to log data argument cannot be passed.

lognetic.setMetaContext

Assigns custom meta data that will be sent along with each exception.

lognetic.setMetaContext(data);

data (required): custom meta data, can be user to store user details

lognetic.setAppVersion

Allows you to set your application version.

lognetic.setAppVersion(version);

version (required): application version as string

License

BSD 3-Clause