Skip to content

Commit

Permalink
docs: Expose reach verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jan 28, 2024
1 parent 1e1b333 commit 188acbf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/content/en/Development-API/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,16 @@ Define each log level color.
(error . ansi-red)))
```

## 🔍 Function: eask-reach-verbosity-p (`symbol`)

Make execution when it reaches the verbosity level.

```elisp
(when (eask-reach-verbosity-p 'debug)
;; TODO: execution here..
)
```

## 🔍 Macro: eask-with-verbosity (`symbol` &rest `body`)

Define verbosity scope.
Expand Down
10 changes: 10 additions & 0 deletions docs/content/zh-TW/Development-API/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,16 @@ $ cat /.log/messages.log
(error . ansi-red)))
```

## 🔍 函式: eask-reach-verbosity-p (`symbol`)

達到詳細等級時執行。

```elisp
(when (eask-reach-verbosity-p 'debug)
;; TODO: 在這裡執行..
)
```

## 🔍 巨集: eask-with-verbosity (`symbol` &rest `body`)

定義消息範圍。
Expand Down

0 comments on commit 188acbf

Please sign in to comment.