Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Suppress logging for specific operationid

    Hi Isomorphic,

    I would like to suppress the logging of a specific request to a DMI as it contains secure details.
    Without resorting to disabling logging OR encrypting the data, how can the values be transferred without displaying the criteria ?

    Is there a way to alter the log level of a specific request. Ex. change the request to say DEBUG level prior to having it processed .
    Is there some other way to achieve the sought objective ?

    Extract from logs:

    === 2018-05-08 12:02:46,847 [ec-7] INFO SQLDataSource - [builtinApplication.chargeCard] Performing update operation with
    criteria: {AUDITID:2021513} values: {AUDITID:2021513,PROCEDURENAME:"AUTHORIZE CARD",PUBLISHERNAME:"MYDEMOACCOUNT",PUBLISHERPASSWORD:"MYDEMOPASS",CHARGECARD:"Y",CARDTYPE:"VISA",CARDNUMBER:"4111111111111111",CARDEXPIRY:"0119",CVV:"123",EMAIL:"MYEMAIL@address.com",CARDHOLDER:"rest2",CHARGEDAMOUNT:10,LOGMESSAGE:"LOG MESSAGE"}

    As you can see above, we wouldn't want any trace of payment details in our logs.


    SmartGWT Power v3.1p
    GWT SDK 2.7.0

    Regards,

    Richard.

  • #2
    Hi Isomorphic,

    Can you provide some feedback or suggestions to the above. If issue is unclear , let me know.

    Richard.

    Comment


    • #3
      Apologies for the delay, we had to back port some changes to 3.1p in order to make things work. Currently there are several undocumented, but reliable features addressing this issue:
      1. since logging pretty prints data Maps into log by formatting them as JSON, you may suppress certain keys from being logged and provide special values to be shown instead of real data. Please see this post for instructions.
      2. we are thinking of another, thread-based approach. You may entirely enable/disable logging for current Thread by calling com.isomorphic.log.Logger methods observeThread() and ignoreThread().
      IMPORTANT! The 3.1p version is no longer supported, so you will not be able to get an updated version. You could use these capabilities in more recent versions (4.1 or higher).
      Last edited by Isomorphic; 16th May 2018, 01:31.

      Comment


      • #4
        Isomorphic,

        Thanks much for the feedback. Option 1 works like a charm.

        Regards,

        Richard.

        Comment

        Working...
        X