classAuxiliary: def__init__(self): self.logger = logging.getLogger('spam_application.auxiliary.Auxiliary') self.logger.info('creating an instance of Auxiliary')
$python lowermodule.py lowermodule <--"" Level DEBUG Handler Stream <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> Level DEBUG Formatter fmt='%(asctime)s %(name)s - %(levelname)s:%(message)s' datefmt=None | o<--"lowermodule" Level DEBUG Handler File '/work/logging_traceback/myapp.log' Level DEBUG Formatter <pythonjsonlogger.jsonlogger.JsonFormatter object at 0x7f41b0c0e040> 2020-04-05 01:12:37,312 lowermodule - ERROR:[Errno 2] No such file or directory: 'myfile.txt' Traceback (most recent call last): File "lowermodule.py", line 16, in word_count with open(myfile, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'myfile.txt'
$cat myapp.log {"asctime": "2020-04-05 01:12:37,312", "name": "lowermodule", "levelname": "ERROR", "message": "[Errno 2] No such file or directory: 'myfile.txt'", "exc_info": "Traceback (most recent call last):\n File \"lowermodule.py\", line 16, in word_count\n with open(myfile, 'r') as f:\nFileNotFoundError: [Errno 2] No such file or directory: 'myfile.txt'"}
base repository: octcat/Spoon-Knife:base:master←head repository: <your_username>/Spoon-Knife:compare masterにするとAble to merge. These branches can be automatically merged.が表示される。
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported - [x] list syntax required (any unordered or ordered list supported) - [x] this is a complete item - [ ] this is an incomplete item
@mentions, #refs, links, formatting, and tags supported
list syntax required (any unordered or ordered list supported)
this is a complete item
this is an incomplete item
Tables
1 2 3 4
First Header | Second Header ------------ | ------------- Content from cell 1 | Content from cell 2 Content in the first column | Content in the second column
PS > ssh-keygen -t rsa -b 4096 -f host-key Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in host-key. Your public key has been saved in host-key.pub. The key fingerprint is: SHA256:****************************************** user@host The key's randomart image is: +---[RSA 4096]----+ | o .. | | o .. | |.. E | |. . . . | | . + . S+. o | |. o o *=*+= | | . . .o+O=+. | | =O+*= . | | o=**+o+ | +----[SHA256]-----+