More settings/placeholder for DateTimeFileLogger#95
Open
DavidePastore wants to merge 4 commits intocodeguy:masterfrom
Open
More settings/placeholder for DateTimeFileLogger#95DavidePastore wants to merge 4 commits intocodeguy:masterfrom
DavidePastore wants to merge 4 commits intocodeguy:masterfrom
Conversation
DateTimeFileWriter.php: Add the date_message_format parameter. With this parameter you can use a custom date format in the logger. The default ISO8601 is a little narrow.
Now it supports all the log levels.
Now it's available: * %root_uri% Replaced with the root URI of the request. * %resurce_uri% Replaced with the resource URI of the request. * %content_type% Replaced with the content type of the request. * %media_type% Replaced with the media type of the request. * %content_charset% Replaced with the content charset of the request. * %content_length% Replaced with the content length of the request. * %host% Replaced with the host of the request. * %host_with_port% Replaced with the host with the port of the request. * %port% Replaced with the port of the request. * %scheme% Replaced with the scheme of the request. * %path% Replaced with the path of the request. * %url% Replaced with the url of the request. * %ip_address% Replaced with the ip address of the request. * %referer% Replaced with the referer of the request. * %user_agent% Replaced with the user agent of the request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You can use date_message_format to set the format of the date when it writes in the log.
Now it supports all the log levels.
Now all the request parameters are available in the message format: