Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
linthoisana opened this issue Dec 12, 2022 · 5 comments

Comments

@linthoisana
Copy link

linthoisana commented Dec 12, 2022

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?
@DmitriyLewen
Copy link
Collaborator

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

@linthoisana
Copy link
Author

linthoisana commented Dec 13, 2022

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

@DmitriyLewen
Copy link
Collaborator

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?

@linthoisana
Copy link
Author

@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. :)

@simar7
Copy link
Member

simar7 commented Jan 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants