Skip to content

shrisowdhaman/logbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Log backup 

USAGE:

gem install logbackup

require 'rubygems'
require 'yaml'
require 'logbackup'

config = "/users/log"

LOG_DIRECTORY_PATH = config


class Sample
  
  p "-----------Start-------------"  
   logbackup = LogbackUp.new "development.log","#{Time.now}_development.log",LOG_DIRECTORY_PATH
   logbackup.renamefile
   logbackup.createfile
  p "--------------End---------------"
end

Releases

No releases published

Packages

No packages published

Languages