Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/imav/internals/__pycache__/logger.cpython-311.pyc



sj'dZddlZddlZddlmZ	ddlmZn#e$r	defdZYnwxYwedefdZ	edefd	Z
dS)
u

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
N)contextmanager)log_dirreturncdS)Nz/var/log/imunify360rJ/opt/imunify360/venv/lib/python3.11/site-packages/imav/internals/logger.pyrrs$$rscan_idc#@Ktjtd}t	|d5}|t
jdd|d|V|dddddS#1swxYwYdS)Nzaibolit_actions.loga%Y-%m-%d %H:%M:%S | 

)ospathjoinropenwritetimestrftime)r
rfs   r	open_aibolit_actions_logr"s
7<<		#899D	
dCA	4=!455FF'FFFGGG	sABBBc#pKt}tj|dtj|d}t|d5}|tjdd|d|V|dddddS#1swxYwYdS)NT)exist_okzmds_actions.logrr
rr)	rrmakedirsrrrrrr)r
_log_dirrrs    r	open_mds_actions_logr+syyHK4((((
7<<"344D	
dCA	4=!455FF'FFFGGG	sAB++B/2B/)__doc__rr
contextlibr defence360agent.internals.loggerrImportErrorstrrrrrr	<module>r#s*
			%%%%%%%8888888%%%%S%%%%%%%c#s''
Back to Directory File Manager