friendica/src/Core/Logger/Type
2023-01-17 20:11:48 +01:00
..
AbstractLogger.php Fix Introspection 2023-01-17 20:11:48 +01:00
ProfilerLogger.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00
README.md Move Monolog to Addons 2022-10-17 22:22:00 +02:00
StreamLogger.php Fix Introspection 2023-01-17 20:11:48 +01:00
SyslogLogger.php Fix Introspection 2023-01-17 20:11:48 +01:00
WorkerLogger.php Happy New Year 2023! 2023-01-01 09:36:24 -05:00

Friendica\Util\Logger

This namespace contains the different implementations of a Logger.

Configuration guideline

The following settings are possible for logger_config:

  • stream: A small logger for files or streams
  • syslog: Prints the logging output into the syslog

VoidLogger is a fallback logger without any function if no debugging is enabled.

ProfilerLogger is a wrapper around an existing logger in case profiling is enabled for Friendica. Every log call will be saved to the Profiler with a timestamp.

Implementation guideline

Each logging implementation should pe capable of printing at least the following information:

  • An unique ID for each Request/Call
  • The process ID (PID)
  • A timestamp of the logging entry
  • The critically of the log entry
  • A log message
  • A context of the log message (f.e which user)

If possible, a Logger should extend AbstractLogger, because it contains additional, Friendica specific business logic for each logging call.