From 37eb0c69388359fe79a0b1f2f44034336393b2bd Mon Sep 17 00:00:00 2001 From: Hsin Yuan Yeh Date: Fri, 27 Oct 2023 20:07:12 +0800 Subject: [PATCH] updating gh-pages repo --- v2/recipes.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 v2/recipes.md diff --git a/v2/recipes.md b/v2/recipes.md new file mode 100644 index 0000000..154157b --- /dev/null +++ b/v2/recipes.md @@ -0,0 +1,22 @@ +# SSHScript v2.0 Recipes + +Last Updated on 2023/10/20 + +
Back to Index
+ +## Topics + +* [Execute commands: one-dollar ($)](#one-dolar) +* [Execute shell commands: two-dollars($$)](#two-dolars) +* [Invoke an interactive console: with-dollar(with $)](#with-dollar) + +## 🔵 Setup Logger +``` +import logging +logger = logging.getLogger('mylogger') +## ... do whatever you want to do with the logger ... +import sshscript +sshscript.setupLogger(logger) +``` + +