docs/extend/contributing/codebase/logging.md
This page covers what makes a good log message in {{kib}}. For how to instantiate and call a logger from your plugin, see the logging service tutorial. For security-sensitive actions that need to be recorded separately, see audit logging.
_search queries.trace/debug for developer diagnostics, info for noteworthy lifecycle events (sparingly — see the HTTP API observability guidance), warn for recoverable anomalies, error/fatal for failures that need attention.debug/trace level).