Skip to content

Commit

Permalink
fix(docs): fixed group log documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodev07 committed Feb 23, 2024
1 parent d7924e3 commit 8887bb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/guide/log-types/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
```ts
import kittylog from "kittylog";

kittylog.group("group title"); // start group
const group = kittylog.group("group title"); // start group
// your code
kittylog.groupEnd();
group.end();

kittylog.group("group title", "red"); // start group with color of your choice
const secondGroup = kittylog.group("group title", "red"); // start group with color of your choice
// your code
kittylog.groupEnd();
secondGroup.end();

kittylog.group("group title", "red", "COLLAPSED"); // start group with color and show it collapsed
const thirdGroup = kittylog.group("group title", "red", "COLLAPSED"); // start group with color and show it collapsed
// your code
// the group will be collpased only in browser environment
kittylog.groupEnd();
thirdGroup.end();
```

::: details Group Parameters
Expand Down

0 comments on commit 8887bb9

Please sign in to comment.