All calls to this logger are a no-op
Inherits From: TransformerLogger
cirq.transformers.transformer_api.NoOpTransformerLogger()
Methods
log
View source
log(
*args,
level: cirq.transformers.LogLevel
= cirq.transformers.LogLevel.INFO
) -> None
Log additional metadata corresponding to the currently active transformer stage.
Args |
*args
|
The additional metadata to log.
|
level
|
Logging level to control the amount of metadata that gets put into the context.
|
Raises |
ValueError
|
If there's no active transformer on the stack.
|
register_final
View source
register_final(
circuit: 'cirq.AbstractCircuit', transformer_name: str
) -> None
Register the end of the currently active transformer stage.
Args |
circuit
|
Final transformed output circuit from the transformer stage.
|
transformer_name
|
Name of the (currently active) transformer stage which ends.
|
Raises |
ValueError
|
If transformer_name is different from currently active transformer name.
|
register_initial
View source
register_initial(
circuit: 'cirq.AbstractCircuit', transformer_name: str
) -> None
Register the beginning of a new transformer stage.
Args |
circuit
|
Input circuit to the new transformer stage.
|
transformer_name
|
Name of the new transformer stage.
|
show
View source
show(
level: cirq.transformers.LogLevel
= cirq.transformers.LogLevel.INFO
) -> None
Show the stored logs >= level in the desired format.
Args |
level
|
The logging level to filter the logs with. The method shows all logs with a
LogLevel >= level .
|