-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlogging.py
More file actions
59 lines (46 loc) · 1.35 KB
/
logging.py
File metadata and controls
59 lines (46 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from module import Module
class Logging(Module):
def __init__(self, api):
super(Logging, self).__init__(api, 'Logging')
def getSyslog(self):
"""
Return raw syslog
"""
return self.request('getSyslog')
def getDmesg(self):
"""
Return raw dmesg
"""
return self.request('getDmesg')
def getReportingLog(self):
"""
Return raw reporting log
"""
return self.request('getReportingLog')
def getPineapLog(self):
"""
Return PineAP Log in JSON Format
"""
return self.request('getPineapLog')
def clearPineapLog(self):
"""
Clear PineAP Log
"""
return self.request('clearPineapLog')
def getPineapLogLocation(self):
"""
Return the path where PineAP Log is written
default: /tmp/
"""
return self.request('getPineapLogLocation')
def setPineapLogLocation(self, location):
"""
Update the path where PineAP Log is written
default: /tmp/
"""
return self.request('setPineapLogLocation', { 'location': location })
def downloadPineapLog(self):
"""
Return the download token for PineAP Log
"""
return self.request('downloadPineapLog')