+
    Ki  c                   s   R t ^ RIt^ RIt^ RIt^ RIt^ RIHt / t]P                  P                  ]P                  P                  ]P                  ! 4       R4      4      t]P                  P                  ]4      '       g   ]P                  ! ]4       ]P                  ! R4      t]P                  ! R4      t]P                  ! R4      t]P                  P                  ]R4      t]P(                  P+                  ]^R7      t]P/                  ]4       ]P0                  ! ]4      t]P7                  ]P8                  4       ]P;                  ]4       ]P<                  ! ]P>                  R	7      t ] P/                  ]4       ]P0                  ! ]4      t!]!P;                  ] 4       ]!P7                  ]PD                  4       R
]!n#        R R lt$R# )z7Utility module for creating an application wide logger.N)GLibZlutrisz3[%(levelname)s:%(asctime)s:%(module)s]: %(message)sz%(asctime)s: %(message)szL%(levelname)-8s %(asctime)s [%(module)s.%(funcName)s:%(lineno)s]:%(message)sz
lutris.log)ZbackupCount)ZstreamFc                s$    V ^8  d   QhR\         /# )i   Zreturn)Zstr)Zformats   "4/usr/lib/python3.14/site-packages/lutris/util/log.py__annotate__r   )   s      #     c                 s    \         P                  P                  \        4      '       g   R# \	        \        RR7      ;_uu_ 4       p V P                  4       pRRR4       V#   + '       g   i     X# ; i)z5Returns the entire text of the log file for this run.Z zutf-8)ZencodingN)ospathZexistsLOG_FILENAMEZopenZread)Zlog_fileZcontents     r   get_log_contentsr   )   sJ    77>>,''	lW	-	---/ 
.N 
.	-Ns   A  A1	)%Z__doc__ZloggingZlogging.handlersr   ZsysZgi.repositoryr    ZLOG_BUFFERSr   ZrealpathZjoinZget_user_cache_dirZ	CACHE_DIRZisdirZmakedirsZ	FormatterZFILE_FORMATTERZSIMPLE_FORMATTERZDEBUG_FORMATTERr   ZhandlersZRotatingFileHandlerZfile_handlerZsetFormatterZ	getLoggerZ__name__Zfile_loggerZsetLevelZDEBUGZ
addHandlerZStreamHandlerZstderrZconsole_handlerZloggerZINFOZ	propagater   ) r   r   <module>r      sn   =   	 
  GGRWW\\$*A*A*CXNO		ww}}YKK	 ""#XY$$%?@ ##$rs ww||I|433La3P   . ))   W]] #   | $ ''szz:   - .			8	$   / "   r   