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
@@ -45,7 +43,6 @@ First, you need to specify the name of your channel in which your logs will be w
45
43
46
44
```yaml
47
45
- example_step:
48
-
foo: bar
49
46
logger:
50
47
channel: pipeline
51
48
```
@@ -65,12 +62,11 @@ handler will be triggered with the `level` option.
65
62
66
63
```yaml
67
64
- example_step:
68
-
foo: bar
69
65
logger:
70
66
# ...
71
67
destinations:
72
68
- stream:
73
-
path: /my/path
69
+
path: var/example.log
74
70
level: warning
75
71
```
76
72
@@ -87,7 +83,6 @@ Next, you need to set the various hosts for your ElasticSearch application.
87
83
88
84
```yaml
89
85
- example_step:
90
-
foo: bar
91
86
logger:
92
87
# ...
93
88
destinations:
@@ -109,23 +104,38 @@ Next, you need to set the various hosts for your ElasticSearch application.
109
104
The first thing to do is to set the minimum [logging level](#the-different-levels-of-logs-in-php) at which this handler will be triggered using the `level`
110
105
option.
111
106
112
-
Next, you need to set the protocol you want to use: [AMQP](#amqp-protocol-configuration) or [TCP](#tcp-protocol-configuration).
107
+
Next, you need to set the protocol you want to use: TCP or AMQP.
113
108
114
-
```yaml
109
+
{{< tabs name="gelf" >}}
110
+
111
+
{{< tab name="TCP" codelang="yaml" >}}
112
+
- example_step:
113
+
logger:
114
+
# ...
115
+
destinations:
116
+
- gelf:
117
+
level: warning
118
+
tcp:
119
+
host: gelf.example.com
120
+
port: 100
121
+
{{< /tab >}}
122
+
123
+
{{< tab name="AMQP" codelang="yaml" >}}
115
124
- example_step:
116
-
foo: bar
117
125
logger:
118
126
# ...
119
127
destinations:
120
128
- gelf:
121
129
level: warning
122
130
amqp:
123
-
queue: my_queue_nama
131
+
queue: my_queue_name
124
132
host: example.com
125
133
port: 100
126
134
login: foo
127
135
password: password
128
-
```
136
+
{{< /tab >}}
137
+
138
+
{{< /tabs >}}
129
139
130
140
#### Using Logstash
131
141
@@ -135,11 +145,12 @@ When setting up your connection to Logstash, you should first set the name of yo
135
145
using the `application_name` option and the minimum [logging level](#the-different-levels-of-logs-in-php) at which this handler will be
136
146
with the `level` option.
137
147
138
-
Next, you need to set the protocol you want to use: [TCP](#tcp-protocol-configuration) or [AMQP](#amqp-protocol-configuration).
148
+
Next, you need to set the protocol you want to use: TCP or AMQP.
139
149
140
-
```yaml
150
+
{{< tabs name="logstash" >}}
151
+
152
+
{{< tab name="TCP" codelang="yaml" >}}
141
153
- example_step:
142
-
foo: bar
143
154
logger:
144
155
# ...
145
156
destinations:
@@ -149,37 +160,25 @@ Next, you need to set the protocol you want to use: [TCP](#tcp-protocol-configur
149
160
tcp:
150
161
host: logstash.example.com
151
162
port: 100
152
-
```
153
-
154
-
### TCP protocol configuration
155
-
156
-
> TCP, Transmission Control Protocol, is a standardised protocol for the transmission of data between different
157
-
> subscribers to a computer network.
158
-
159
-
The configuration for TCP is simple, you only need to set the `host` and `port` options on your system.
163
+
{{< /tab >}}
160
164
161
-
```yaml
162
-
tcp:
163
-
host: example.com
164
-
port: 100
165
-
```
166
-
167
-
### AMQP protocol configuration
168
-
169
-
> AMQP, Advanced Message Queuing Protocol, is a standardised transfer and framing protocol for the asynchronous,
170
-
> secure and reliable transfer of messages.
171
-
172
-
For the AMQP protocol, you need to define the name of your `queue`, the `host` and `port` of your application,
173
-
and the login credentials (`login` and `password`).
0 commit comments