Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not only are there <a href="https://stackoverflow.com/questions/1417665/python-warnings-and-logging-verbose-limit/1417675">log levels</a>, but there is a really flexible <a href="http://docs.python.org/library/logging.html#configuring-logging" rel="nofollow noreferrer">way of configuring them</a>. If you are using named <code>logger</code> objects (e.g., <code>logger = logging.getLogger(...)</code>) then you can configure them appropriately. That will let you configure verbosity on a subsystem-by-subsystem basis where a <em>subsystem</em> is defined by the logging hierarchy.</p> <p>The other option is to use <a href="http://docs.python.org/library/logging.html#filter-objects" rel="nofollow noreferrer"><code>logging.Filter</code></a> and <a href="http://docs.python.org/library/warnings.html#the-warnings-filter" rel="nofollow noreferrer">Warning filters</a> to limit the output. I haven't used this method before but it looks like it might be a better fit for your needs.</p> <p>Give <a href="http://www.python.org/dev/peps/pep-0282/" rel="nofollow noreferrer">PEP-282</a> a read for a good prose description of the Python <code>logging</code> package. I think that it describes the functionality much better than the module documentation does.</p> <h2>Edit after Clarification</h2> <p>You might be able to handle the logging portion of this using a custom class based on <code>logging.Logger</code> and registered with <code>logging.setLoggerClass()</code>. It really sounds like you want something similar to syslog's <em>"Last message repeated 9 times"</em>. Unfortunately I don't know of an implementation of this anywhere. You might want to see if <a href="http://twistedmatrix.com/documents/current/api/twisted.python.log.html" rel="nofollow noreferrer">twisted.python.log</a> supports this functionality.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload