
    *`iR                     $    d Z ddlZd Zdef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                  J    t          j        t           j        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     l/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/xgrammar/support/logging.pyenable_loggingr   	   s4    l#G	     r   namec                 *    t          j        |           S )z(Get a logger according to the given name)r	   	getLogger)r   s    r   r   r      s    T"""r   )__doc__r	   r   strr   r   r   r   <module>r      sN    
   #C # # # # # #r   