mpi_array.logging.get_root_logger¶
-
mpi_array.logging.get_root_logger(name, comm=None, root_rank=0)[source]¶ Returns a
logging.Loggerobject with time-stamp,comm.Get_name()andcomm.Get_rank()in the message. Logging output limited to the MPI rank specified byroot_rank.Parameters: - name (
str) – Name of logger (note that the name of logger actually created will bename + ".rank." + ("%04d" % comm.Get_rank())). - comm (
mpi4py.MPI.Comm) – MPI communicator. Used for determining the rank of this process. IfNoneusesmpi4py.MPI.COMM_WORLD. - root_rank (
int) – Logging output is limited to this rank, the returnedlogging.Loggerobjects on other ranks have alogging.NullHandler.
Return type: Returns: Logger object.
- name (