Forum

Kahn
Moderator
    Has successfully completed the online course Introduction
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
6 years, 7 months ago #16488
Up
0
Down
::

Please do not use the Logging Connector (it is old) but a Server Side Business Object, which offers you a Log Interface with the Simplifier Object.

e.g.

  • Simplifier.Log.error(“I have an error”)
  • Simplifier.Log.error(“I have an error”, {“detailA”: “It should fail here”, “detailB”: “The passed value was wrong”})

 

You can pass a JSON as details optionally as well.

You have the following Log-Levels

  1. DEBUG
  2. INFO
  3. WARNING (access this by .warn
  4. ERROR
  5. CRITICAL

Please see the documentation for more information.

 

Hope this helps.

 

Best Regards

Kamil