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