Skip to content

Commit ec4bfbb

Browse files
committed
update logging page
1 parent e9dea50 commit ec4bfbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: tutorials/logging.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ geode::log::debug("Filesize: {}", filesize);
4343
geode::log::debug("Found node: {}", node->getID());
4444
```
4545

46+
> :warning: Debug logs are not shown by default. See the [Log filtering](#log-filtering) section to see how you can change this behavior.
47+
4648
## Syntax
4749
The logger uses [fmtlib](https://fmt.dev/latest/syntax.html) under the hood, which means you can use its syntax, which will get forwarded to fmtlib. Geode also provides formatters for a few common types, such as `CCPoint`, `CCNode`, etc.
4850

@@ -59,11 +61,9 @@ The platform console is the quickest way to see the logs, running real time inga
5961
6062
![Image showing the platform console option ingame](/assets/geode_platform_console.png)
6163
62-
## Log levels
63-
64-
> :warning: As of the time of the last documentation update, log levels are **still being worked on**, and will be released soon, in **a future Geode update**.
64+
## Log filtering
6565
66-
Log levels are a system that hide the less important logs from the **platform console** and the **log files generated by Geode**. The log level can be customized individually for both of these output locations, so you can have a log level of **info** for the log files, and a log level of **debug** for the platform console.
66+
Log filtering is a system that hide the less important logs from the **platform console** and the **log files generated by Geode**. The log level can be customized individually for both of these output locations, so you can have a log level of **info** for the log files, and a log level of **debug** for the platform console.
6767
6868
The log level takes the value **debug**, **info**, **warn** or **error**. Setting the log level to one of those values will only allow logs with that level **or higher** to be written. For example, log level **warn** will only show **warns** and **errors**, while log level **info** will show **info**, **warn** and **error** logs. The default values of those log levels is **info** for both channels.
6969

0 commit comments

Comments
 (0)