different kind of logging
This commit is contained in:
parent
45a4932d79
commit
ad9c3b108e
2 changed files with 5 additions and 2 deletions
3
robot.py
3
robot.py
|
@ -16,8 +16,7 @@ DIR = os.path.dirname(os.path.realpath(__file__))
|
|||
TMP_DIR = '/tmp'
|
||||
OUT_DIR = DIR + '/out'
|
||||
|
||||
logging.basicConfig(filename=OUT_DIR + '/delojza.log',
|
||||
level=logging.INFO,
|
||||
logging.basicConfig(level=logging.INFO,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
logger = logging.getLogger("kunsax")
|
||||
|
||||
|
|
4
robot.sh
Normal file
4
robot.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd ${DIR}
|
||||
python3 robot.py 2>&1 |tee -a out/delojza.log
|
Loading…
Reference in a new issue