
    h              	           S r SSKrSSKJr  SrSrSr\R                  " SS\SS	9  SS
S.S\	S\
S\\   S-  S\4S jjrS\	S\
4S jrS\	S\
4S jrg)z&Set of functions for logging messages.    N)colorize   (   once z^gymnasium\.)module   category
stacklevelmsgargsr   r   c                r    [         [        ::  a)  [        R                  " [	        SX-   3S5      UUS-   S9  gg)zRaises a warning to the user if the min_level <= WARN.

Args:
    msg: The message to warn the user
    *args: Additional information to warn the user
    category: The category of warning
    stacklevel: The stack level to raise to
zWARN: yellowr	   r
   N)	min_levelWARNwarningswarnr   )r   r   r   r   s       J/home/james-whalen/.local/lib/python3.13/site-packages/gymnasium/logger.pyr   r      s:     Dvcj\*H5!A~	
     c                 ,    [        U /UQ7[        SS.6  g)z$Logs a deprecation warning to users.   r
   N)r   DeprecationWarningr   r   s     r   deprecationr   (   s    ?t?0Q?r   c                 j    [         [        ::  a%  [        R                  " [	        SX-   3S5      SS9  gg)zELogs an error message if min_level <= ERROR in red on the sys.stderr.zERROR: red   )r   N)r   ERRORr   r   r   r   s     r   errorr    -   s-    Eh5u=!L r   )__doc__r   gymnasium.utilsr   r   r   r   filterwarningsr   strobjecttypeWarningintr   r   r     r   r   <module>r*      s    ,  $ 

	 	  $6 O &*	
	

 7md"
 	
,@S @ @
Ms M6 Mr   