+

Search Tips   |   Advanced Search

Print stack traces

We can print stack traces for certain objects.

We can print stack traces for an object if the object is an instance of Error (if (object instance of Error) evaluates true).

WL.Logger.config({stringify: true, stacktrace : true});
WL.Logger.error("BOOM");

WL.Logger.config({stacktrace: false});
WL.Logger.error(object);


Parent topic: Configure the MobileFirst Logger