mirror of https://github.com/hpcaitech/ColossalAI
11 lines
352 B
Python
11 lines
352 B
Python
from .logging import DistributedLogger
|
|
|
|
__all__ = ['get_dist_logger', 'DistributedLogger']
|
|
|
|
|
|
def get_dist_logger(name='root'):
|
|
"""Get logger instance based on name. The DistributedLogger will create singleton instances,
|
|
which means that only one logger instance is created per name.
|
|
"""
|
|
return DistributedLogger.get_instance(name=name)
|