Skip to content

Commit 37eb0c6

Browse files
Hsin Yuan YehHsin Yuan Yeh
authored andcommitted
updating gh-pages repo
1 parent 4c7a1df commit 37eb0c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

v2/recipes.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SSHScript v2.0 Recipes
2+
3+
Last Updated on 2023/10/20
4+
5+
<div style="text-align:right;position:relative;top:-140px"><a href="./index">Back to Index</a></div>
6+
7+
## Topics
8+
9+
* [Execute commands: one-dollar ($)](#one-dolar)
10+
* [Execute shell commands: two-dollars($$)](#two-dolars)
11+
* [Invoke an interactive console: with-dollar(with $)](#with-dollar)
12+
13+
## 🔵 <a name="one-dollar"></a>Setup Logger
14+
```
15+
import logging
16+
logger = logging.getLogger('mylogger')
17+
## ... do whatever you want to do with the logger ...
18+
import sshscript
19+
sshscript.setupLogger(logger)
20+
```
21+
22+

0 commit comments

Comments
 (0)