Skip to content

Commit

Permalink
[docs] Add usage SetPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZotov committed Dec 25, 2024
1 parent ce3b725 commit f2a79d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/sc-memory/api/cpp/core/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,17 @@ logger.Mute(); // Mute logging
logger.Unmute(); // Unmute logging
```

#### **SetPrefix**

Customize prefix for logs:

```cpp
logger.SetPrefix("MyAgent: ");

logger.Info("It is info message");
// Output: MyAgent: Is info message
```

#### **Clear**

Clear any open file streams or flush logs if necessary:
Expand Down

0 comments on commit f2a79d3

Please sign in to comment.