mpi_array.logging.get_rank_logger¶
-
mpi_array.logging.get_rank_logger(name, comm=None, ranks=None)[source]¶ Returns
logging.Loggerobject for message logging.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. - ranks (
Noneorlist-of-int) – Limits logging output to ranks specified in this list. IfNone, all ranks produce logging output.
Return type: Returns: Logger object.
- name (