+

Search Tips   |   Advanced Search

Method chaining

We can invoke multiple method calls by chaining logger methods.

We can chain these logger methods:

WL.Logger.ctx
WL.Logger.create

This example carries out these steps:

WL.Logger.ctx({pkg: 'com.my.app'}).log('Hello');
// '[com.my.app] Hello' 


Parent topic: Configure the MobileFirst Logger