Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

GridLogger Element Documentation

NAME

GridLogger — Click element; Log Grid-related events.

SYNOPSIS

GridLogger(KEYWORDS)

Drivers: userlevel

DESCRIPTION

This element provides methods which other Grid components can call to log significant protocol events.

Multiple GridLogger elements can co-exist.

Keyword arguments are:

  • LOGFILE — String. Filename of binary format log file. If this argument is supplied, the element starts logging to the specified file as soon as the element is initialized. Otherwise, no logging takes place until the start_log handler is called.
  • SHORT_IP — Boolean. Defaults to true. If true, only log the last byte of IP Addresses.

ELEMENT HANDLERS

  • start_log (write-only) — When a filename is written, starts logging to that file. Any existing logfile is closed.
  • stop_log (write-only) — Stop logging and close any open logfile.
  • logfile (read-only) — Return the filename of the current logfile, if any. May return the empty string.

SEE ALSO

GridRouteTable, DSDVRouteTable, GridTxError, LookupLocalGridRoute

Generated by click-elem2man from ../elements/grid/gridlogger.hh:17 on 2018/10/03.

Clone this wiki locally