logrotate模块用于处理日志文件轮转的相关任务
# -*- coding: utf-8 -*- ‘‘‘ Module for managing logrotate. ‘‘‘ # Import python libs import os import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) default_conf = ‘/etc/logrotate.conf‘ # Define a function alias in order not to shadow built-in‘s __func_alias__ = { ‘set_‘: ‘set‘ }
时间: 2024-10-06 00:43:13