brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/
is a symlink to /usr/local/Cellar/redis/x.y.z
(e.g., 2.8.7
)
import logging | |
import os | |
def setup_logging_format(log_level=logging.INFO, override_existing_loggers=True): | |
""" | |
Logger formatter that works locally and in AWS lambda | |
:param log_level: Level of logging | |
:param override_existing_loggers: Flag for overriding the formatting of all existing loggers |