-
Notifications
You must be signed in to change notification settings - Fork 37
/
PyU4V.conf.example
51 lines (44 loc) · 1.3 KB
/
PyU4V.conf.example
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
[setup]
; enter the below details - mandatory
;(can be passed as parameters on initialisation also)
username=smc
password=smc
server_ip=10.0.0.75
port=8443
array=00012345678
; remote_array=00012345679
; verify=True
verify=/path-to-file/server_hostname.pem
;overrides default timeout on REST calls for specificed value in seconds
;timeout=500
; log configuration
[loggers]
keys=root,PyU4V
[logger_root]
handlers=consoleHandler, fileHandler
[logger_PyU4V]
; Set PyU4V log level by changing level, valid values are:
; DEBUG, INFO, WARNING, ERROR, CRITICAL
level=INFO
handlers=consoleHandler, fileHandler
qualname=PyU4V
propagate=0
[handlers]
keys=consoleHandler, fileHandler
[handler_consoleHandler]
class=StreamHandler
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=handlers.RotatingFileHandler
formatter=simpleFormatter
; Output log file to working directory, change 'PyU4V.log' to path of your
; choice to change log file output location. The file handler will limit log
; file sizes to 10MB before rotating to a new one beginning PyU4V.log, a
; maximum of 10 log files will be kept and old log files named PyU4V.log.1,
; PyU4V.log.2 etc.
args=('PyU4V.log', 'a', 10485760, 10)
[formatters]
keys=simpleFormatter
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s