Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More settings/placeholder for DateTimeFileLogger #95

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DavidePastore
Copy link
Contributor

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:

  • %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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant