o
    )iR                     @   s&   d Z ddlZdd ZdefddZdS )z
Logging support for XGrammar. It derives from Python's logging module, and in the future,
it can be easily replaced by other logging modules such as structlog.
    Nc                   C   s   t jt jdddd dS )z)Enable XGrammar's default logging formpat{z%Y-%m-%d %H:%M:%Sz6[{asctime}] {levelname} {filename}:{lineno}: {message})levelstyledatefmtformatN)loggingbasicConfigINFO r
   r
   U/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/xgrammar/support/logging.pyenable_logging	   s   
r   namec                 C   s
   t | S )z(Get a logger according to the given name)r   	getLogger)r   r
   r
   r   r      s   
r   )__doc__r   r   strr   r
   r
   r
   r   <module>   s    
