IFormat
in
Log formatting interface for the Neuron logging system.
This interface defines the contract for log formatters, which transform log data objects into formatted strings suitable for various output destinations. Formatters handle the presentation layer of logging, converting structured log data into human-readable or machine-parseable formats.
Common format implementations:
- PlainText: Human-readable text format for console/file output
- JSON: Structured JSON format for log aggregation systems
- HTML: Web-formatted logs with styling and structure
- CSV: Tabular format for spreadsheet analysis
- Slack: Formatted messages for Slack channel notifications
Tags
Table of Contents
Methods
- format() : string
Methods
format()
public
format(Data $data) : string
Parameters
- $data : Data