mirror of
https://github.com/clearml/clearml-docs
synced 2025-05-09 07:10:01 +00:00
Update text reporting example
This commit is contained in:
parent
3f4fc3e4f0
commit
7b17403a70
@ -10,7 +10,7 @@ When the script runs, it creates a task named `text reporting` in the `examples`
|
|||||||
|
|
||||||
|
|
||||||
## Reporting Text to Console
|
## Reporting Text to Console
|
||||||
To report text to the task console, call [`Logger.report_text()`](../../references/sdk/logger.md#report_text)
|
To report text to the task console, call [`Logger.report_text()`](../../references/sdk/logger.md#report_text):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# report text
|
# report text
|
||||||
@ -24,7 +24,7 @@ Text reported with `Logger.report_text()` appears in the task's **CONSOLE** tab
|
|||||||
|
|
||||||
## Reporting Text as Debug Samples
|
## Reporting Text as Debug Samples
|
||||||
To report longer text as a debug sample (e.g., logs, large text outputs, or structured text files),
|
To report longer text as a debug sample (e.g., logs, large text outputs, or structured text files),
|
||||||
use [`Logger.report_media()`](../../references/sdk/logger.md#report_media) with a text stream and `.txt` file extension.
|
use [`Logger.report_media()`](../../references/sdk/logger.md#report_media) with a text stream and `.txt` file extension:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
text_to_send = """
|
text_to_send = """
|
||||||
|
Loading…
Reference in New Issue
Block a user