[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Functions](../../index.md) > [Developing in Bash](index.md) > Logging

# Bash function execution logging

Cloud Functions automatically captures the `stderr` standard error output stream of a Bash application and sends it to the centralized logging system in Yandex Cloud. In addition to the application execution logs, the system also logs request execution events.

{% note info %}

Multiline messages must use `\r` (carriage return) as a separator, not `\n` (line feed). When using a line feed, each line is sent as a separate message and displayed separately in the log.

{% endnote %}

## System messages {#router-loggin}

When processing each function call, the system also logs the `START`, `END`, and `REPORT` system messages:

```text
START RequestID: <request_ID> Version: <function_version_ID>
END RequestID: <request_ID>
REPORT RequestID: <request_ID>
    Duration: 236.606 ms
    Billed Duration: 300 ms
    Memory Size: 128 MB
    Max Memory Used: 22 MB
    Queuing Duration: 0.027 ms
    Function Init Duration: 225.298 ms
```

All lines contain the ID of the request (`RequestID`), which is generated automatically when the function is invoked.

The `REPORT` line provides a report on the function run. It contains additional information about the resources consumed:
* `Duration`: Time spent invoking the function. It includes the `Queuing Duration` and `Function Init Duration` parameters.
* `Billed Duration`: Time billed based on the [pricing policy](../../pricing.md).
* `Memory Size`: Amount of memory specified when creating the version, in MB.
* `Max Memory Used`: Memory used when the request starts running.
* `Queuing Duration`: Time spent by the request in the internal queue. If this time increases, it may indicate a lack of function instances. The maximum number of instances is limited by [quotas](../../concepts/limits.md).
* `Function Init Duration`: Time spent initializing the runtime and loading the function code.