How to configure logging so that log-data does not contain data privacy critical data?

Question on behalf of @till-atomic-slope

How can I configure logging so that log-data does not contain data privacy critical data? And switch it back for testing purposes in test environments?

Answer on behalf of @tomas-thin-gale

In A12 we take a safe approach towards logging and no A12 product should log any sensitive information because we do not log user identification nor content of the documents. For more detailed logging customer projects need to implement extension points and provide log messages that use document contents but not log anything that can be considered personal. The knowledge what is personal information is domain specific and therefore client projects need to do it. More info about how we can log securely can be found here: <INTERNAL_LINK>