CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 00:03:59 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/alibaba/sentinel-golang.git
etag: W/"c3f0ab3f445fe3d70bd36609c89e20e6"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Chx%2FJ%2FZiCQuxqktO1871KXnnjKuPg0%2BpfUog8o%2F4fLzf9VFornBtZosTeOtCrojQn80gcLrrlhkzqhiYkhY7nGPMJavO5hY4PlT8dd14QskrRS1DvqRWiFf716bBGA1oHEuRWXOoOqFd76SpYmyIdm5VCsXG4hXaMEez8H7Fh0Y6nsWj9vCKoh%2BqqgamZ%2FAIih%2Fvh2dbrcsH4gy1YlJ%2FVmoqG2muBJEqCOEa44sjmLiHM9t8jFt0PlR0wQfqcGkHV0pf3wlL2S9m4hn8ksOSVA%3D%3D--QXRgIzJ3nzniMNRD--RtMl%2FGPtgoxnXwzRl5CSzw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1129062427.1753920238; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 00:03:58 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 00:03:58 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ACB6:3FE9C3:74B39:B7C15:688AB2EE
Support customizing global logger and export logger functions as defa… · alibaba/sentinel-golang@d0cf004 · GitHub
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule_manager.go
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 445
Commit d0cf004
authored
Support customizing global logger and export logger functions as default delegate (#201)
* Support customizing global logger (via reset operation or in SentinelConfig)
* Export logger functions, like Info.., as the delegate to the global logger
* Polish code of logging module1 parent 4eec949 commit d0cf004Copy full SHA for d0cf004
File tree
Expand file treeCollapse file tree
32 files changed
+258
-214
lines changedFilter options
- api
- core
- base
- circuitbreaker
- config
- flow
- hotspot
- cache
- log/metric
- stat
- base
- system
- ext/datasource
- consul
- etcdv3
- file
- nacos
- logging
- util
Expand file treeCollapse file tree
32 files changed
+258
-214
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
+1-3Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 |
| - | |
13 | 11 |
| |
14 | 12 |
| |
15 | 13 |
| |
| |||
131 | 129 |
| |
132 | 130 |
| |
133 | 131 |
| |
134 |
| - | |
| 132 | + | |
135 | 133 |
| |
136 | 134 |
| |
137 | 135 |
| |
|
core/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go+13-12Lines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
| |||
318 | 319 |
| |
319 | 320 |
| |
320 | 321 |
| |
321 |
| - | |
| 322 | + | |
322 | 323 |
| |
323 | 324 |
| |
324 | 325 |
| |
325 |
| - | |
| 326 | + | |
326 | 327 |
| |
327 | 328 |
| |
328 | 329 |
| |
329 | 330 |
| |
330 |
| - | |
| 331 | + | |
331 | 332 |
| |
332 | 333 |
| |
333 | 334 |
| |
334 | 335 |
| |
335 |
| - | |
| 336 | + | |
336 | 337 |
| |
337 | 338 |
| |
338 | 339 |
| |
| |||
344 | 345 |
| |
345 | 346 |
| |
346 | 347 |
| |
347 |
| - | |
| 348 | + | |
348 | 349 |
| |
349 | 350 |
| |
350 | 351 |
| |
351 | 352 |
| |
352 |
| - | |
| 353 | + | |
353 | 354 |
| |
354 | 355 |
| |
355 | 356 |
| |
| |||
498 | 499 |
| |
499 | 500 |
| |
500 | 501 |
| |
501 |
| - | |
| 502 | + | |
502 | 503 |
| |
503 | 504 |
| |
504 | 505 |
| |
505 |
| - | |
| 506 | + | |
506 | 507 |
| |
507 | 508 |
| |
508 | 509 |
| |
509 | 510 |
| |
510 |
| - | |
| 511 | + | |
511 | 512 |
| |
512 | 513 |
| |
513 | 514 |
| |
514 | 515 |
| |
515 |
| - | |
| 516 | + | |
516 | 517 |
| |
517 | 518 |
| |
518 | 519 |
| |
| |||
524 | 525 |
| |
525 | 526 |
| |
526 | 527 |
| |
527 |
| - | |
| 528 | + | |
528 | 529 |
| |
529 | 530 |
| |
530 | 531 |
| |
531 | 532 |
| |
532 |
| - | |
| 533 | + | |
533 | 534 |
| |
534 | 535 |
| |
535 | 536 |
| |
|
core/circuitbreaker/rule.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
247 | 248 |
| |
248 | 249 |
| |
249 | 250 |
| |
250 |
| - | |
| 251 | + | |
251 | 252 |
| |
252 | 253 |
| |
253 | 254 |
| |
|
core/circuitbreaker/rule_manager.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule_manager.go+8-9Lines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
| |||
34 | 33 |
| |
35 | 34 |
| |
36 | 35 |
| |
37 |
| - | |
| 36 | + | |
38 | 37 |
| |
39 | 38 |
| |
40 | 39 |
| |
| |||
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
53 |
| - | |
| 52 | + | |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
| |||
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 |
| - | |
| 68 | + | |
70 | 69 |
| |
71 | 70 |
| |
72 | 71 |
| |
| |||
167 | 166 |
| |
168 | 167 |
| |
169 | 168 |
| |
170 |
| - | |
| 169 | + | |
171 | 170 |
| |
172 | 171 |
| |
173 | 172 |
| |
| |||
193 | 192 |
| |
194 | 193 |
| |
195 | 194 |
| |
196 |
| - | |
| 195 | + | |
197 | 196 |
| |
198 | 197 |
| |
199 | 198 |
| |
| |||
218 | 217 |
| |
219 | 218 |
| |
220 | 219 |
| |
221 |
| - | |
| 220 | + | |
222 | 221 |
| |
223 | 222 |
| |
224 | 223 |
| |
| |||
230 | 229 |
| |
231 | 230 |
| |
232 | 231 |
| |
233 |
| - | |
| 232 | + | |
234 | 233 |
| |
235 | 234 |
| |
236 | 235 |
| |
| |||
272 | 271 |
| |
273 | 272 |
| |
274 | 273 |
| |
275 |
| - | |
| 274 | + | |
276 | 275 |
| |
277 | 276 |
| |
278 | 277 |
| |
|
+20-9Lines changed: 20 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 |
| |
54 | 63 |
| |
55 | 64 |
| |
56 | 65 |
| |
57 |
| - | |
| 66 | + | |
58 | 67 |
| |
59 | 68 |
| |
60 | 69 |
| |
| |||
77 | 86 |
| |
78 | 87 |
| |
79 | 88 |
| |
80 |
| - | |
| 89 | + | |
81 | 90 |
| |
82 | 91 |
| |
83 | 92 |
| |
| |||
131 | 140 |
| |
132 | 141 |
| |
133 | 142 |
| |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
| 143 | + | |
139 | 144 |
| |
140 | 145 |
| |
141 | 146 |
| |
142 |
| - | |
143 | 147 |
| |
144 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
145 | 152 |
| |
146 | 153 |
| |
147 | 154 |
| |
| |||
163 | 170 |
| |
164 | 171 |
| |
165 | 172 |
| |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
166 | 177 |
| |
167 | 178 |
| |
168 | 179 |
| |
|
+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| 33 | + | |
| 34 | + | |
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
| |||
68 | 71 |
| |
69 | 72 |
| |
70 | 73 |
| |
| 74 | + | |
71 | 75 |
| |
72 | 76 |
| |
73 | 77 |
| |
| |||
128 | 132 |
| |
129 | 133 |
| |
130 | 134 |
| |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 |
| |
132 | 140 |
| |
133 | 141 |
| |
|
+6-11Lines changed: 6 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 13 |
| |
19 | 14 |
| |
20 | 15 |
| |
| |||
40 | 35 |
| |
41 | 36 |
| |
42 | 37 |
| |
43 |
| - | |
| 38 | + | |
44 | 39 |
| |
45 |
| - | |
| 40 | + | |
46 | 41 |
| |
47 | 42 |
| |
48 | 43 |
| |
| |||
66 | 61 |
| |
67 | 62 |
| |
68 | 63 |
| |
69 |
| - | |
| 64 | + | |
70 | 65 |
| |
71 | 66 |
| |
72 | 67 |
| |
| |||
154 | 149 |
| |
155 | 150 |
| |
156 | 151 |
| |
157 |
| - | |
| 152 | + | |
158 | 153 |
| |
159 | 154 |
| |
160 | 155 |
| |
161 | 156 |
| |
162 | 157 |
| |
163 | 158 |
| |
164 | 159 |
| |
165 |
| - | |
| 160 | + | |
166 | 161 |
| |
167 | 162 |
| |
168 | 163 |
| |
169 | 164 |
| |
170 |
| - | |
| 165 | + | |
171 | 166 |
| |
172 | 167 |
| |
173 | 168 |
| |
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
25 |
| - | |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
|
You can’t perform that action at this time.
0 commit comments