Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for v1.1.0 #22

Merged
merged 14 commits into from
Jun 16, 2019
13 changes: 13 additions & 0 deletions documentation/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For specific cases, a specialized logger can be used.
+ [Record a single line log](#record-a-single-line-log)
+ [Recording the execution of a task](#recording-the-execution-of-a-task)
* [Use another logger than the global logger](#use-another-logger-than-the-global-logger)
* [Clear your logger](#clear-your-logger)

## Quick start

Expand Down Expand Up @@ -260,3 +261,15 @@ TinyCurrentLogger value: customLogger during: [
TinyCurrentLogger value record: 'Test2'
]
```

## Clear your logger

Each logger can understand the method `#clearLogger`. This method will have as effet to clear the output of the loggers. The actual effect can be slightly different depending on the kind of logger:
jecisc marked this conversation as resolved.
Show resolved Hide resolved
- `TinyLogger` will send the message to all its sub loggers
- `Transcript` logger will clear the Transcript of Pharo
- `Stdout` logger will do nothing because it is not possible to clean a stdout
- `File` logger will erase the file used to log

```Smalltalk
TinyLogger default clearLogger
```