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 fc739a3 commit f7e51a7
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. The optional `format` field allows you to specify the format of the access logs, with options being `flat` or `json`, defaulting to `flat`. You can also optionally specify which attributes to log by providing a list in the `attributes` field. Additionally, the optional `path` field can be used to specify the file path to save the 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.

::: code http_access_logs.bal :::

Expand Down

0 comments on commit f7e51a7

Please sign in to comment.