postee icon indicating copy to clipboard operation
postee copied to clipboard

Postee logs to stdout: Whether is it configurable to 'NOT' log entire scan reports into stdout

Open linthoisana opened this issue 3 years ago • 5 comments

Hello,

  • I am looking for an answer if Postee log is configurable to not log the entire scan reports of the images.
  • I am using Amazon SES to send out the scan report to the recipients. Having the entire scan reports in the log again is causing issues with our logging mechanism that writes pod logs to Splunk.
  • the version of Postee i am using is Postee v2.2.0
  • Is there a way to turn of the logging of the reports?

linthoisana avatar Dec 12 '22 10:12 linthoisana

Hello @linthoisana Postee currently hasn't option to disable logs.

Do you want to disable all logs? We can add this, but in this case you will not see info and error messages.

Regards, Dmitriy

DmitriyLewen avatar Dec 13 '22 05:12 DmitriyLewen

Thank you @DmitriyLewen for your reply. I would like to turn off only the scan reports which i am receiving in the log again.

if disabling log is not possible, is it possible to use log levels and log the reports only when log level is for example DEBUG or TRACE but not when INFO ?

Best regards, Lin

linthoisana avatar Dec 13 '22 11:12 linthoisana

Unfortunately Postee currently uses default golang logger. It doesn't support log level selection.

I think adding log levels in Postee is good idea. @simar7 what do you think?

DmitriyLewen avatar Dec 14 '22 03:12 DmitriyLewen

@DmitriyLewen : your reply helps me a lot.

I would like to know if log levels will be added to Postee in the future. I will like to stay in this loop. This update can be very beneficial to my team and the project. :)

linthoisana avatar Dec 14 '22 12:12 linthoisana

hi today we don't support log level selection in Postee as it uses the default golang logger. We also don't have any plans to add support for it in the near future. But we welcome any contributions if you would like to make any.

simar7 avatar Jan 12 '23 15:01 simar7