This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
# Get the top-level logger object | |
log = logging.getLogger() | |
# make it print to the console. | |
console = logging.StreamHandler() | |
log.addHandler(console) | |
# emit a warning to the puny Humans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
log = logging.getLogger() # 'root' Logger | |
console = logging.StreamHandler() | |
format_str = '%(asctime)s\t%(levelname)s -- %(processName)s %(filename)s:%(lineno)s -- %(message)s' | |
console.setFormatter(logging.Formatter(format_str)) | |
log.addHandler(console) # prints to console. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
log = logging.getLogger() | |
# Set a severity threshold to one above WARN | |
log.setLevel(logging.ERROR) | |
# This WARNING will not reach the Humans. | |
log.warn('Citizens of Earth, be warned!') | |
# This CRITICAL message, however, will not be ignored. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging import logging.config | |
LOGGING_CONFIG = { | |
'version': 1, # required | |
'disable_existing_loggers': True, # this config overrides all other loggers | |
'formatters': { | |
'simple': { | |
'format': '%(asctime)s %(levelname)s -- %(message)s' | |
}, | |
'whenAndWhere': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------------------------------------------------------------------------------------------------------------------------------+ | |
| | | |
| ****************** | | |
| ********************** | | |
| **** ****** **** | | |
| **** ** **** | | |
| *** ** *** | | |
| ** ****** ****** ** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"header": { | |
"Author": "HaaTa (Jacob Alexander) 2015", | |
"Base": "Blank", | |
"Date": "2015-09-12", | |
"Generator": "KIICONF 0.2", | |
"KLL": "0.3c", | |
"Layout": "Default", | |
"Name": "MDErgo1", | |
"Version": "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi-star@pi-star-duplex(ro):www$ sudo pistar-zumspotflash rpi_duplex | |
ZUMspot-v1.4.17 20190529 14.7456MHz dual ADF7021 FW by CA6JAU GitID #3c63f30 | |
Press any key to write the rpi_duplex firmware to this modem or Ctrl-C to quit... | |
Flashing your rpi_duplex modem to the latest version | |
URL transformed to HTTPS due to an HSTS policy | |
--2019-11-05 23:25:34-- https://github.com/juribeparada/MMDVM_HS/releases/download/v1.4.17/install_fw_duplex.sh | |
Resolving github.com (github.com)... 192.30.255.113 | |
ivan.xxx,45.55.112.52 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAuU1ZaEA1K845sCpOzj2wkfv4oDUT32wP44nVF0cHMgjDc9qaWAW2fgZkn/1VPvA4FfH7tsimId9MjfSsjO5/g= | |
ivan.xxx,45.55.112.52 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAuU1ZaEA1K845sCpOzj2wkfv4oDUT32wP44nVF0cHMgjDc9qaWAW2fgZkn/1VPvA4Connecting to github.com (github.com)|192.30.255.113|:443... connected. | |
HTTP request sent, awaiting response... 302 Found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi-star@pi-star-duplex(ro):www$ tail -f /var/log/pi-star/MMDVM-2019-11-06.log | |
I: 2019-11-06 07:17:36.241 Started the DMR Id lookup reload thread | |
I: 2019-11-06 07:17:36.370 Interfaces Info | |
I: 2019-11-06 07:17:36.371 IPv4: lo:127.0.0.1 | |
I: 2019-11-06 07:17:36.371 IPv4: wlan0:192.168.86.27 | |
I: 2019-11-06 07:17:36.371 IPv6: lo:::1 | |
I: 2019-11-06 07:17:36.371 IPv6: wlan0:fe80::3a5:c015:eb4a:aa99%wlan0 | |
I: 2019-11-06 07:17:36.371 Default interface is : wlan0 | |
I: 2019-11-06 07:17:36.371 IP to show: wlan0:192.168.86.27 | |
M: 2019-11-06 07:17:36.371 MMDVMHost-20190625_Pi-Star-v4 is running |
OlderNewer