updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / torrent-leecher / Logs.py
blobe525548005957d39391a8e0977f16e50449acfe4
1 #! /usr/bin/env python
2 # -*- coding: utf-8 -*-
4 #Librarys
5 ###################################################################################
6 from time import strftime, gmtime
8 #Classes
9 ###################################################################################
10 class Logs:
11 def __init__(self, Parent):
12 self.Parent = Parent
14 def log(self, message):
15 #print("["+str(strftime("%H:%M:%S", gmtime()))+"] "+str(message))
16 logfile = open("/var/log/torrent-leecher.log", "a")
17 logfile.write("["+str(strftime("%H:%M:%S", gmtime()))+"] "+str(message)+"\r\n")
18 logfile.close()