Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AzeemMuzammil committed Aug 14, 2024
1 parent f7e51a7 commit 0c09ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/http-access-logs/http_access_logs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HTTP service - Access logs

Ballerina allows enabling HTTP access logs, which can be used to record the HTTP requests handled by the application. HTTP access logs are disabled by default. To enable them, set `console=true` under `ballerina.http.accessLogConfig` in the `Config.toml` file. Additionally, the path field can be used to define the file path for saving the access logs, offering flexible log management. The log format can be specified using the optional `format` field, with `flat` and `json` as available options, defaulting to `flat`. Furthermore, you can customize the logged attributes by listing them in the optional `attributes` field.
Ballerina allows enabling HTTP access logs, which can be used to record the HTTP requests handled by the application. HTTP access logs are disabled by default. Set `console=true` under `ballerina.http.accessLogConfig` in the `Config.toml` file to enable them. Additionally, the `path` field can be used to specify the file path to save the access logs. The log format can be specified as either `flat` or `json` using the optional `format` field (defaults to `flat`). Furthermore, you can customize the logged attributes using the optional `attributes` field.

::: code http_access_logs.bal :::

Expand Down

0 comments on commit 0c09ca0

Please sign in to comment.