-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5504 from AzeemMuzammil/fb-access-log-bbe
Update BBEs for AccessLog Improvements
- Loading branch information
Showing
4 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
[ballerina.http.accessLogConfig] | ||
# Enable printing access logs on the Console. The default value is `false`. | ||
console = true | ||
# Specify the format of access logs. Options are `flat` or `json`. The default value is `flat`. | ||
format = "flat" | ||
# List of attributes to include in the access logs. This field is optional. | ||
attributes = ["ip", "date_time", "request", "status", "response_body_size", "http_referrer", "http_user_agent"] | ||
# Specify the file path to save the access logs. This is optional. | ||
path = "testAccessLog.txt" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
$ bal run http_access_logs.bal | ||
ballerina: HTTP access log enabled | ||
127.0.0.1 - - [15/Dec/2022:11:39:42 +0530] "GET /albums HTTP/1.1" 200 95 "-" "curl/7.79.1" | ||
127.0.0.1 [11/Jul/2024:13:21:01.620 +0530] "GET /albums HTTP/1.1" 200 95 "-" "curl/8.4.0" |