Templates for logging

From Geocube
Jump to: navigation, search

Log Templates

You can use Log Templates to make it easier to enter the text for logging comment. Simply put the macro between %'s, for example "%waypoint.name%", in the template and it will be automatically expanded when the logging comment gets made.

Waypoints

  • waypoint.name: The name of the waypoint, e.g. "Hide and cache".
  • waypoint.code: The code of the waypoint, e.g. "GA12345".
  • waypoint.owner: The owner of the waypoint, e.g. "John CO Smith".
  • waypoint.ratingD: Difficulty rating of the waypoint, e.g. "3.5".
  • waypoint.ratingT: Terrain rating of the waypoint, e.g. "2.5".

Date and time

  • waypoint.founddate: The date the waypoint was found according to the Marked as Found log, e.g. "2017-12-01".
  • waypoint.foundtime: The time the waypoint was found according to the Marked as Found log, e.g. "13:14:15".
  • waypoint.founddatetime: The date the waypoint was found according to the Marked as Found date, e.g. "2017-12-01 13:14:15".
  • now.dow: The current day-of-the-week, e.g. "Sunday".
  • now.date: The current date, e.g. "2017-12-01".
  • now.time: The current time, e.g. "13:14:15".
  • now.datetime: The current date and time, e.g. "2017-12-01 13:14:15".

You

  • cacher.name: Your name, e.g. "G.E. O'Cacher".

Statistics

  • stats.found.logdate: Returns the number of "found" records for the date logged.
  • stats.found.today: Returns the number of "found" records for today.
  • stats.dnf.logdate: Returns the number of "dnf" records for the date logged.
  • stats.dnf.today: Returns the number of "dnf" records for today.

Log Macros

Is the above list not enough, then you can add your own log macros. Simple enter the macro name and text and you can use it yourself in the logging comment or in the template.

For example you can have the macro "team" which gets replaced with the string "Edwin, Dirk and Hanorah". Then in the log text I can use the string "%team%" and in the log this is automatically replaced by the three of us. If somebody else joins for a day, all you need to do is edit the macro and you can use your normal logging templates as if nothing had changed.