You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ Laralog can send logs to different services like ElasticSearch and Datadog.
76
76
|--to-timezone=[zone]|Convert logs to a different timezone See [timezone list](http://php.net/manual/en/timezones.php) (Only ElasticSearch).|
77
77
|--sender=[sender]|Sender to use: elasticsearch (Default) or datadog.|
78
78
|--hostname=[hostname]|Override the default hostname.|
79
+
|--smart|Serialize JSON context when is possible.|
79
80
|-v|Verbose mode that output the new log entries to STDOUT.|
80
81
81
82
@@ -130,7 +131,17 @@ Benefits of the safe file handler:
130
131
The safe file handler do not use LibEvent, inotify or another file event notification mechanism so instead it uses a regular file check (See "--read-freq=[ms]" parameter). This makes the log file check process a bit slow but in this way the LibEvent extension is not required.
131
132
132
133
133
-
## 9. How to build Laralog
134
+
## 9. Smart serialization
135
+
136
+
The option "--smart" will automatically serialize the JSON chunks found in the context and send it as the "parameters" field.
The previous log entry contains JSON chunk as context and normally it's send to the Logstash or Datadog as a string, however with the smart serialization option Laralog will try to extract the JSON part and send it as the field "params".
143
+
144
+
## 10. How to build Laralog
134
145
135
146
Laralog is available as a self-executable PHAR file, however if you want to build your own custom PHAR you need to follow the following steps:
136
147
@@ -141,7 +152,7 @@ Laralog is available as a self-executable PHAR file, however if you want to buil
141
152
caveman build . -x -r
142
153
143
154
144
-
## 10. Download
155
+
## 11. Download
145
156
146
157
If you are lazy and you don't want to build your Laralog version, you are welcome to download the following executable (PHAR file):
0 commit comments