LoggerPatternConverter is an abstract class that provides the formatting functionality that derived classes need.
Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.
Located in /log4php/pattern/LoggerPatternConverter.php (line 34)
Class | Description |
---|---|
LoggerPatternConverterMDC | Returns the Mapped Diagnostic Context value corresponding to the given key. |
LoggerPatternConverterNDC | Returns the full Nested Diagnostic Context. |
LoggerPatternConverterClass | Returns the fully qualified class name of the class from which the logging request was issued. |
LoggerPatternConverterLevel | Returns the event's level. |
LoggerPatternConverterLocation | Returns the line number within the file from which the logging request was issued. |
LoggerPatternConverterRelative | Returns the number of milliseconds elapsed since the start of the application until the creation of the logging event. |
LoggerPatternConverterDate | Returns the date/time of the logging request. |
LoggerPatternConverterProcess | Returns the PID of the current process. |
LoggerPatternConverterSuperglobal | Returns a value from a superglobal array corresponding to the given key. |
LoggerPatternConverterFile | Returns the name of the file from which the logging request was issued. |
LoggerPatternConverterLogger | Returns the name of the logger which created the logging request. |
LoggerPatternConverterMethod | Returns the name of the function or method from which the logging request was issued. |
LoggerPatternConverterMessage | Returns the logged message. |
LoggerPatternConverterLine | Returns the line number within the file from which the logging request was issued. |
LoggerPatternConverterThrowable | Returns the throwable information linked to the logging event, if any. |
LoggerPatternConverterLiteral | Returns the literal value passed in the constructor, without modifications. |
LoggerPatternConverterSessionID | Returns the active session ID, or an empty string if out of session. |
LoggerPatternConverterNewLine | Returns platform-specific newline character(s). |
Formatting information, parsed from pattern modifiers.
Next converter in the converter chain.
Converter-specific formatting options.
Constructor
Called in constructor. Converters which need to process the options can override this method.
Converts the logging event to the desired format. Derived pattern converters must implement this method.
Converts the event and formats it according to setting in the Formatting information object.
Documentation generated on Tue, 12 Mar 2024 14:04:54 +0900 by phpDocumentor 1.4.4