summarize-m2x-logs

Synopsis

summarize-m2x-logs [-h] [-m] [-s <EMAIL_SUBJECT>] [-t <EMAIL_TO>] [<INFILE>] [<OUTFILE>]

Description

summarize-m2x-logs summarizes logs generated by meetup2xibo.

INFILE is the path to a log file. If omitted, it defaults to standard input. OUTFILE is the path to the output file. If omitted, it defaults to standard output.

The HTML-formatted default summary report contains three sections:

Program Execution
Executions counts of various versions of meetup2xibo.
Changes to Xibo Current and Future Event Listings
Descriptions of inserted, updated, and cancelled events.
Changes to Xibo Past Event Listings
Descriptions of retired events.

The --mappings option replaces the default summary report with a CSV-formatted list of location mappings. Each mapping shows how Meetup.com’s venue name and find-us map to a Xibo event location field value. The mappings include links to example events at Meetup.com.

The --to option sends output via email instead of to a file. The email message body contains the default summary report. An attachment containing a CSV-formatted list of location mappings will be sent if any mapping log lines are found. The --to and --subject options provide the email message destination and subject.

Options

-h, --help

Show a help message and exit.

-m, --mappings

Summarize location mappings in CSV format. (default: summarize logs in HTML format)

-s <EMAIL_SUBJECT>, --subject <EMAIL_SUBJECT>

Email subject. (default: Meetup to Xibo log summary)

-t <EMAIL_TO>, --to <EMAIL_TO>

Generate an email message to this address or to space separated addressses. Overrides –mappings option. (default: no email message)