Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Log 'msg % args' with severity 'ERROR'.

To pass exception information, use the keyword argument exc_info with
a true value, e.g.

logger.error("Houston, we have a %s", "major problem", exc_info=1)

src/t/r/troy-0.0.3/troy/plugins/strategy/plugin_strategy_basic_early_binding.py   troy(Download)
                    troy._logger.info  ("partition %s done" % partition.id)
                else :
                    troy._logger.error ("partition %s failed - abort" % partition.id)
                    raise RuntimeError ("partition %s failed - abort" % partition.id)
 
                    troy._logger.info  ("partition done")
                else :
                    troy._logger.error ("partition failed - abort")
                    raise RuntimeError ("partition failed - abort")
 

src/t/r/troy-0.0.3/troy/plugins/strategy/plugin_strategy_basic_late_binding.py   troy(Download)
                    troy._logger.info  ("partition %s done" % partition.id)
                else :
                    troy._logger.error ("partition %s failed - abort" % partition.id)
                    raise RuntimeError ("partition %s failed - abort" % partition.id)
 

src/t/r/troy-0.0.3/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob.py   troy(Download)
 
        else :
            troy._logger.error ("No COORDINATION_URL set for bigjob backend")
            troy._logger.info  ("example: export COORDINATION_URL=redis://<pass>@gw68.quarry.iu.teragrid.org:6379")
            troy._logger.info  ("Contact Radica@Ritgers for the redis password")

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_sagapilot.py   troy(Download)
 
        else :
            troy._logger.error ("No COORDINATION_URL set for sagapilot backend")
            troy._logger.info  ("example: export COORDINATION_URL=redis://<pass>@gw68.quarry.iu.teragrid.org:6379")
            troy._logger.info  ("Contact Radica@Ritgers for the redis password")
 
        if  info['state'] == FAILED :
            troy._logger.error ('CU %s failed' % unit.id)
            troy._logger.info ('log: \n----\n%s\n---\n' % info['log'])
            troy._logger.info ('stderr: \n----\n%s\n---\n' % info['stderr'])

src/t/r/troy-0.0.3/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_sagapilot.py   troy(Download)
 
        else :
            troy._logger.error ("No COORDINATION_URL set for sagapilot backend")
            troy._logger.info  ("example: export COORDINATION_URL=redis://<pass>@gw68.quarry.iu.teragrid.org:6379")
            troy._logger.info  ("Contact Radica@Ritgers for the redis password")