|
Rosetta
|

Public Member Functions | |
| def | __init__ (self, logger, level=None, handler=None, close=True) |
| def | __enter__ (self) |
| def | __exit__ (self, et, ev, tb) |
Public Attributes | |
| logger | |
| level | |
| handler | |
| close | |
| old_level | |
Context handler to modify logging configuration with context.
Example:
with LoggingContext(rosetta.logger, level=logging.WARNING):
#...very chatty functions...
# Back to normal logging | def pyrosetta.distributed.utility.log.LoggingContext.__init__ | ( | self, | |
| logger, | |||
level = None, |
|||
handler = None, |
|||
close = True |
|||
| ) |
Referenced by pyrosetta.distributed.tasks.taskbase.TaskBase.__setstate__().
| def pyrosetta.distributed.utility.log.LoggingContext.__enter__ | ( | self | ) |
| def pyrosetta.distributed.utility.log.LoggingContext.__exit__ | ( | self, | |
| et, | |||
| ev, | |||
| tb | |||
| ) |
References buffered_file.close(), utility::io::izstream.close(), utility::io::mpi_stream::basic_mpi_ostream< Elem, Tr, ElemA, ByteT, ByteAT >.close(), utility::io::ozstream.close(), options.KeepSameFile.close(), pyrosetta.distributed.cluster.logging_handlers.MsgpackHmacSocketHandler.close(), pyrosetta.distributed.cluster.logging_handlers.MultiSocketHandler.close(), pyrosetta.distributed.utility.log.LoggingContext.close, detail::width_adapter< SpecHandler, Char >.handler, detail::precision_adapter< SpecHandler, Char >.handler, detail::id_adapter< Handler, Char >.handler, pyrosetta.distributed.cluster.logging_listeners.SocketListener.handler, pyrosetta.distributed.utility.log.LoggingContext.handler, schema.Temperature.level, SphereNode.level(), basic::TracerOptions.level, pyrosetta.distributed.utility.log.ProgressLogger.level, pyrosetta.distributed.utility.log.LoggingContext.level, ui::network::IndexPack.level, pyrosetta.distributed.utility.log.LoggerMixin.logger(), pyrosetta.distributed.utility.log.ProgressLogger.logger, pyrosetta.distributed.utility.log.LoggingContext.logger, and pyrosetta.distributed.utility.log.LoggingContext.old_level.
| pyrosetta.distributed.utility.log.LoggingContext.close |
| pyrosetta.distributed.utility.log.LoggingContext.handler |
Referenced by pyrosetta.distributed.utility.log.LoggingContext.__exit__().
| pyrosetta.distributed.utility.log.LoggingContext.level |
| pyrosetta.distributed.utility.log.LoggingContext.logger |
| pyrosetta.distributed.utility.log.LoggingContext.old_level |
Referenced by pyrosetta.distributed.utility.log.LoggingContext.__exit__().