By default ERP messages and emails are stored in the DB.
All other log entries are stored in the .log file.
Please update your database schema
If you need to extend the logging with a new DB log record, please read the cookbook.
The ID for the standard logging is 'silver_common.logger'. This is an instance of Monolog\Logger. Thus, writing a simple debug log in a container action is like:
All transmitted messages are logged automatically, because the mandatory transport layer implicitly logs all messages. But if a new transport is implemented (other than the WebConnectorMessageTransport), this implementation hast to take care of logging measuring point a lower level. Please read the chapter Measuring Points in the ERP logging documentation.
If the email contains a password, that should not be logged in the DB, you have to specify this password as a template parameter.
MailHelperService will replace the template parameter 'password' with '***'.
The standard log file is (relative to the shop's root directory) located at
More precisely, Monolog's StreamHandler is responsible for writing logs into files. The path the destined file is a constructor parameter of the StreamHandler. For an example service configuration, please have a look at the ERP Logging.
There are no templates for logging.