目录

第二章

Permalink

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up

Fetching contributors…

Cannot retrieve contributors at this time. Cannot retrieve contributors at this time
相关软件

相关软件

mybase

为知笔记

notepad++

editplus

z-blog

coding

| #coding: utf-8
—|—
| import logging, os
| from logging.handlers import RotatingFileHandler
|
|
| def init_logging(app):
| formatter = logging.Formatter(
| ‘%(asctime)s %(levelname)s: %(message)s ‘
| ‘[in %(pathname)s:%(lineno)d]’)
| error_log = os.path.join(app.root_path, app.config[“ERROR_LOG”])
| error_file_handler = RotatingFileHandler(
| error_log,
| maxBytes = 102410241024,
| backupCount = 10
| ) 骄傲彩虹版 Apple Watch 展台在全球范围内出现
123456

macOS Mojave 升级补丁发布,解决融合硬盘 Boot Camp 问题
苹果刚刚为 macOS Mojave 10.14.5 发布了升级补丁,主要修复 Boot Camp 相关问题。这个问题主要出现在配备了融合硬盘(Fusion Drive)的 Ma …
1
苹果发布 Logic Pro X 10.4.5,针对 Mac Pro 优化性能
23
苹果又注册 7 台 Mac 笔记本,有全新 16 寸 MacBook Pro?
12
【原创视频】Powerbeats Pro — 音质不错的运动耳机
17
苹果确认 仪表盘 Dashboard 彻底被移除,陪伴我们 14 年

| error_file_handler.setLevel(logging.ERROR)
| error_file_handler.setFormatter(formatter)
| app.logger.addHandler(error_file_handler)
|
| info_log = os.path.join(app.root_path, app.config[“INFO_LOG”])
| info_file_handler = RotatingFileHandler(
| info_log,
| maxBytes = 102410241024,
| backupCount = 10
| )
| info_file_handler.setLevel(logging.INFO)
| info_file_handler.setFormatter(formatter)
| app.logger.addHandler(info_file_handler)
|
| app.logger.setLevel(logging.DEBUG)
|
|
```
You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.