More About Datalog Assets

The Datalog plugin stores data as files in several asset subdirectories. One contains status information for all logging in the site. Others contain the records for a specific page.

# plugins/datalog

The plugin reserves this directory for state information in json files. The schedules.json file contains parsed form of markup for presently running logs.

plugins/datalog

# plugins/datalog/*

The plugin records logs in subdirectories named by the slug of the page title where Datalogs have been run. For example, here are the logs started from the About Datalog Plugin page.

plugins/datalog/about-datalog-plugin

# API

Programs can retrieve schedules.json and specific logs via the asset GET routes for the site.

/assets/plugins/datalog/schedules.json /assets/plugins/datalog/<slug>/<file>

A program can retrieve a log file addressed by an offset from the most recent file. Offset zero is the file currently being written. Chunk is one of 'hour', 'day' or 'year' depending on the file naming in use.

/plugin/datalog/<slug>/<chunk>/offset/<number>

Several routes provide properly formatted sample data useful for documentation and testing.

/plugin/datalog/random /plugin/datalog/waves /plugin/datalog/curl?url=fed.wiki.org