{{Header}} design for notification GUI * systray ** with two buttons: *** show logs *** clear logs ** with two colors *** yellow (new logs) *** green (no new logs) * Show only messages of type WARN. * advice users to scrub relay fingerprints - how - where? ---- * https://www.linux.com/news/open-source-logging-tools-linux/ * https://packages.debian.org/stable/gnome/gnome-logs * https://screenshots.debian.net/package/glogg * https://askubuntu.com/questions/20173/gui-for-watching-logs-tail-and-grep
~/vanguards $ grep -A 2 -r "plog"

src/vanguards/vanguards.py:    plog("INFO", "Honoring ExcludeNodes line: "+conf_line)
src/vanguards/vanguards.py:      plog("INFO", "Excluding networks "+str(self.networks))
src/vanguards/vanguards.py:      plog("INFO", "Excluding idhexes "+str(self.idhexes))
src/vanguards/vanguards.py:      plog("INFO", "Excluding nicks "+str(self.nicks))
src/vanguards/vanguards.py:        plog("WARN", "ExcludeNodes contains countries, but Tor has no GeoIP file! "+
src/vanguards/vanguards.py-             "Tor is not excluding countries!")
src/vanguards/vanguards.py:        plog("INFO", "Excluding countries "+str(self.countries))
src/vanguards/vanguards.py:      plog("ERROR",
src/vanguards/vanguards.py-           "You must set a DataDirectory location option in your torrc.")

src/vanguards/vanguards.py:      plog("ERROR", "Cannot write state to "+self.state_file+": "+str(e))
src/vanguards/vanguards.py:      plog("NOTICE", "Tor got SIGHUP. Reapplying vanguards.")
src/vanguards/vanguards.py:      plog("ERROR",
src/vanguards/vanguards.py-           "Vanguards requires Tor 0.3.3.x (and ideally 0.3.4.x or newer).")
src/vanguards/vanguards.py:    plog("INFO", "New layer2 guard: "+guard.fingerprint)
src/vanguards/vanguards.py:    plog("INFO", "New layer3 guard: "+guard.fingerprint)
src/vanguards/vanguards.py:        plog("INFO", "Removing newly-excluded guard "+g.idhex)
src/vanguards/vanguards.py:        plog("INFO", "Removing expired guard "+g.idhex)
src/vanguards/vanguards.py:        plog("INFO", "Removing down guard "+g.idhex)
src/vanguards/logger.py:    plog("ERROR", "Invalid loglevel: "+str(level))
src/vanguards/logger.py:    plog("ERROR", "Can't open log file "+str(filename)+": "+str(e))
src/vanguards/cbtverify.py:      plog("ERROR", "Circuit "+event.id+" just changed from non-HS to HS: "\
src/vanguards/cbtverify.py-                   +event.raw_content())
src/vanguards/cbtverify.py:    plog("INFO", "CBT Timeout rate: "+str(event.timeout_rate)+"; Our measured timeout rate: "+str(self.timeout_rate_all())+"; Hidden service timeout rate: "+str(self.timeout_rate_hs()))
src/vanguards/cbtverify.py:    plog("DEBUG", event.raw_content())
src/vanguards/cbtverify.py:      plog("ERROR", "Circuit "+circ_id+" already exists in map!")
src/vanguards/rendguard.py:      plog("INFO", "Relay "+r+" is not in our consensus.")
src/vanguards/rendguard.py-      r_name = r+" (not in-consensus)"
src/vanguards/rendguard.py:    plog("DEBUG", "Relay "+r_name+" used %d times out of %d, "+\
src/vanguards/rendguard.py-                   "for a use rate of %f%%. It has a consensus "
src/vanguards/rendguard.py-                   "weight of %f%%", int(self.use_counts[r].used),
src/vanguards/rendguard.py:        plog(loglevel, "Relay "+r_name+" used %d times out of %d, "+\
src/vanguards/rendguard.py-                     "for a use rate of %f%%. This is above its consensus "
src/vanguards/rendguard.py-                     "weight of %f%%", int(self.use_counts[r].used),
src/vanguards/rendguard.py:      plog("INFO", "Total use counts %d reached the scale count %d. Scaling.",
src/vanguards/rendguard.py-           self.total_use_counts, REND_USE_SCALE_AT_COUNT)
src/vanguards/rendguard.py:    plog("DEBUG", event.raw_content())
src/vanguards/NodeSelection.py:      plog("NOTICE", "No routers left after restrictions applied: "+str(self.rstr_list))
src/vanguards/NodeSelection.py:      plog("NOTICE", "No routers left after restrictions applied: "+str(self.rstr_list))
src/vanguards/bandguards.py:        plog("NOTICE", "Reconnected to the Tor network after %d seconds.",
src/vanguards/bandguards.py-             disconnected_secs)
src/vanguards/bandguards.py:            plog("INFO", "Marking possibly destroyed circ %s at %d",
src/vanguards/bandguards.py-                 c.circ_id, event.arrived_at)
src/vanguards/bandguards.py:    plog("INFO", event.raw_content())
src/vanguards/bandguards.py:      plog("NOTICE", "The connection to guard "+guardfp+" was closed with "+\
src/vanguards/bandguards.py-           "a live circuit.")
src/vanguards/bandguards.py:    plog("INFO", "The connection to guard "+guardfp+" was closed with "+\
src/vanguards/bandguards.py-         "circuit "+event.id+" on it.")
src/vanguards/bandguards.py:            plog("INFO",
src/vanguards/bandguards.py-                 "Circuit %s possibly destroyed, but outside of the time window (%d - %d)",
src/vanguards/bandguards.py:        plog("DEBUG", "Closed hs circ for "+event.raw_content())
src/vanguards/bandguards.py:      plog("DEBUG", "Added circ for "+event.raw_content())
src/vanguards/bandguards.py:        plog("NOTICE", "Circuit use resumed after %d seconds.",
src/vanguards/bandguards.py-             disconnected_secs)
src/vanguards/bandguards.py:        plog("DEBUG", "Circ "+event.id+" now in-use. %d delivered bytes.",
src/vanguards/bandguards.py-             self.circs[event.id].delivered_read_bytes)
src/vanguards/bandguards.py:        plog("NOTICE", "Circuit use resumed after %d seconds.",
src/vanguards/bandguards.py-             disconnected_secs)
src/vanguards/bandguards.py:        plog("DEBUG", "Circ "+event.id+" now in-use. %d delivered bytes.",
src/vanguards/bandguards.py-             self.circs[event.id].delivered_read_bytes)
src/vanguards/bandguards.py-
src/vanguards/bandguards.py:    plog("DEBUG", event.raw_content())
src/vanguards/bandguards.py:      plog("NOTICE", "Circuit use resumed after %d seconds.",
src/vanguards/bandguards.py-           disconnected_secs)
src/vanguards/bandguards.py:      plog("DEBUG", event.raw_content())
src/vanguards/bandguards.py:        plog("ERROR",
src/vanguards/bandguards.py-             "Application read data exceeds cell data:"+event.raw_content());
src/vanguards/bandguards.py-      if delivered_written + overhead_written > event.written*_CELL_DATA_RATE:
src/vanguards/bandguards.py:        plog("ERROR",
src/vanguards/bandguards.py-             "Application written data exceeds cell data:"+event.raw_content());
src/vanguards/bandguards.py-
src/vanguards/bandguards.py:          plog("WARN", "We've been disconnected from the Tor network for %d seconds!"
src/vanguards/bandguards.py-               % disconnected_secs)
src/vanguards/bandguards.py:            plog("WARN", "Tor has been disconnected for %d seconds, "+\
src/vanguards/bandguards.py-                 "and failing all circuits for %d seconds!",
src/vanguards/bandguards.py-                  now - self.network_down_since,
src/vanguards/bandguards.py:            plog("NOTICE", "Tor has been failing all circuits for %d seconds!"
src/vanguards/bandguards.py-                 % disconnected_secs)
src/vanguards/bandguards.py:    plog("DEBUG", event.raw_content())
src/vanguards/bandguards.py:        plog("NOTICE", "Tor bug #29699: Got %d dropped cell on circ %s "\
src/vanguards/bandguards.py-                       +"(in state %s %s; old state %s %s).",
src/vanguards/bandguards.py:       plog("INFO", "Tor bug #29927: Got a dropped cell on circ %s "\
src/vanguards/bandguards.py-                       +"(in state %s %s; old state %s %s).", circ.circ_id,
src/vanguards/bandguards.py:        plog("WARN", "Possible Tor bug, or possible attack if very frequent: "\
src/vanguards/bandguards.py-                     +"Got %d dropped cell on circ %s "\
src/vanguards/bandguards.py:        plog("INFO", "Tor bug #29786: Got a dropped cell on circ %s "\
src/vanguards/bandguards.py-                       +"(in state %s %s; old state %s %s).", circ.circ_id,
src/vanguards/bandguards.py:        plog("INFO", "Tor bug #29700: Got a dropped cell on circ %s "\
src/vanguards/bandguards.py-                       +"(in state %s %s; old state %s %s).", circ.circ_id,
src/vanguards/bandguards.py:        plog("INFO", "Tor bug #29927: Got a dropped cell on circ %s "\
src/vanguards/bandguards.py-                       +"(in state %s %s; old state %s %s).", circ.circ_id,
src/vanguards/bandguards.py:    plog(level, "Circ "+str(circ_id)+" exceeded "+str_name+": "+str(cur_val)+
src/vanguards/bandguards.py-                  " > "+str(max_val)+". "+extra)
src/vanguards/control.py:  plog("NOTICE", "Vanguards %s connected to Tor %s using stem %s",
src/vanguards/control.py-       __version__, controller.get_version(), stem.__version__)
src/vanguards/control.py:      plog("NOTICE", "We force-closed circuit "+str(circ_id))
src/vanguards/control.py:      plog("INFO", "Failed to close circuit "+str(circ_id)+": "+str(e.message))
src/vanguards/config.py:    plog("NOTICE", "Wrote config to "+options.write_file)
src/vanguards/main.py:    plog("NOTICE", "Got CTRL+C. Exiting.")
src/vanguards/main.py:      plog("ERROR",
src/vanguards/main.py-           "Specified config file "+options.config_file+\
src/vanguards/main.py-           " can't be read: "+str(e))
src/vanguards/main.py:    plog("INFO", "Current layer2 guards: "+state.layer2_guardset())
src/vanguards/main.py:    plog("INFO", "Current layer3 guards: "+state.layer3_guardset())
src/vanguards/main.py:    plog("NOTICE", "Creating new vanguard state file at: "+config.STATE_FILE)
src/vanguards/main.py:        plog("WARN", "Tor daemon connection "+ret+". Trying again...")
src/vanguards/main.py:        plog("NOTICE", "Tor daemon connection "+ret+". Trying again...")
src/vanguards/main.py:      plog("NOTICE", "Tor needs descriptors: "+str(e)+". Trying again...")
src/vanguards/main.py:      plog("NOTICE", "Tor can't save its own config file: "+str(e))
src/vanguards/main.py:    plog("NOTICE", "Updated vanguards in torrc. Exiting.")
src/vanguards/main.py:      plog("NOTICE", "In order for bandwidth-based protections to be "+
src/vanguards/main.py-                      "enabled, you must use Tor 0.3.4.10 or newer.")
{{Footer}}