Project

logs_tf

0.0
No release in over 3 years
Low commit activity in last 3 years
A gem to interface with the logs.tf API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 1.0
 Project Readme

Logs.tf interface Build Status Dependencies Code Climate Coverage Status

A gem for the logs.tf API

Usage

  • Get an account and API key on logs.tf
  • Set a constant called LogsTF:API_KEY or use it as an argument in the next step
  • Create a log object.
log = LogsTF::Log.new(File.open('logfile.log'), 'map_name', 'title', 'api_key')
  • Create the upload object:
upload = LogsTF::Upload.new(log)
  • If there something wrong an error will be raised which you can rescue and inspect the message of:
begin
  upload.send
rescue Exception => e
  puts "The error is #{e.message}"
end
  • If everthing's alright, you can get the URL to the uploaded log:
  upload.send
  upload.url