Thor77
5ea2f6ab3d
Remove extra lines after encoding header
2018-02-01 20:49:23 +01:00
Thor77
edff1e956d
Optionally Pendulum.diff_for_humans instead of frmttime
...
for relative last seen time (default)
* introduce --lastseenabsolute
* introduce tsstats.template.render_servers(lastseen_relative=True)
2017-07-07 14:23:10 +02:00
Thor77
270b20d385
Fix E501 (line too long)
2017-03-24 23:19:48 +01:00
Thor77
e4212f28fb
Log total execution time to info
2017-03-24 23:17:58 +01:00
Matthew
a83d6de253
Add ability to pass a directory for --log option ( #17 )
...
If you pass a directory, it will now tack a '*.log' glob on the end of
the path to automatically use all log files inside this directory.
2017-03-08 22:54:07 +01:00
Thor77
6c35aed767
Only log to file if not logging to stdout
2017-02-27 13:37:05 +01:00
Thor77
8f49c3e95d
Add debugstdout flag/config-directive
...
to enable debug logging to stdout
Fix #15
2017-02-27 13:37:04 +01:00
Thor77
0033ce186f
Move logger-setup to tsstats.logger
...
and handlers are now attached as desired in __main__.cli
2017-02-27 13:37:00 +01:00
Thor77
5e19e38965
Fix E501 (line too long)
2017-02-19 17:17:14 +01:00
Matthew
5968dc31dd
Support for a nicer structure for ID maps ( #12 )
...
This adds support for a more expressive (albeit more verbose) IdentMap
structure. It makes it easier to annotate the structure with additional
data (such as names to associate with the IDs), to assist with
maintaining the IdentMap.
2017-02-18 14:58:23 +01:00
Matthew Gamble
69557a94a6
Update CLI help text to match readme
2017-02-15 08:33:17 +11:00
Thor77
ba47122f50
Sort servers by sid for consistent output
2016-11-23 21:09:11 +01:00
Thor77
42796be9d8
Use render_servers instead of render_template
...
* limit to one output file for all virtual servers
2016-11-22 23:04:18 +01:00
Thor77
f0dc95a583
Adapt to new return type of tsstats.log.parse_logs
2016-11-19 22:27:44 +01:00
Thor77
9a38e0e7cb
Rename template_path to template
2016-11-18 21:46:38 +01:00
Thor77
5637a11b2b
Add onlinetimethreshold config and cli-option
...
to set render_template.onlinetime_threshold.
Default value is -1 => no filtering to not cause confusion
2016-11-11 18:40:52 +01:00
Thor77
3a1d51a60b
Remove default for output-flag
...
default still set through config-defaults, though
Providing a default here suppressed config-option "output"
2016-09-22 15:28:42 +02:00
Thor77
52fc1b487c
Add cli-flag for datetimeformat and pass config-option to funccall
2016-09-17 22:41:38 +02:00
Thor77
5c52ab1995
Pass template config/cli-option to render_template in tsstats.__main__.main
2016-08-10 22:49:16 +02:00
Thor77
07b61d86ce
Add -t/--template cli-arg
2016-08-10 22:44:48 +02:00
Thor77
3f140b8d6a
Don't add sid-suffix to output if only one vserver occured in parsed logs
...
* bump version to 0.10.5
2016-08-09 20:37:20 +02:00
Thor77
a475caa7c7
Fix not calling str() on value before adding to config in __main__.cli
...
* bump version to 0.10.4
2016-08-08 22:25:57 +02:00
Thor77
708f071033
replace tsstats.config.parse_config with tsstats.config.load, which just returns a configparser.ConfigParser-instance for easier extension
...
tsstats.__main__.main: now accepts only a configparser.ConfigParser-instance and extracts values from it
tsstats.__main__.cli: defaults from argparser are now suppressed and given cli-args override values from config
* bump version to 0.10.0
2016-08-06 21:36:17 +02:00
Thor77
34e682cf81
remove unused var-assignment in __main__.cli
2016-06-25 20:42:50 +02:00
Thor77
bb808ca8c0
rename noonlinedc to onlinedc in __main__.main to correctly represent it's function
...
* rename noonlinedc to onlinedc in value-dict returned by .parse_args
* rename keyword-arg from noonlinedc to onlinedc in __main__.main
2016-06-25 20:42:50 +02:00
Thor77
892680fe4d
add onlinedc config-option
...
* inverse of --noonlinedc
2016-06-25 20:42:46 +02:00
Thor77
573838c35e
Merge branch 'multi_vserver'
2016-06-24 21:43:51 +02:00
Thor77
487a50508f
add -nod/--noonlinedc cli-flag
2016-06-23 21:43:40 +02:00
Thor77
95c22dde35
make __main__.main work with new output of tsstats.log.parse_logs
...
* if sid given, add .<sid> to outputpath
2016-06-22 20:47:12 +02:00
Thor77
52a05acdab
add source-encoding (utf-8) to all files
2016-06-07 17:42:53 +02:00
Thor77
752e4f4c82
rename tsstats.exceptions.InvalidConfig to InvalidConfiguration
...
because there's no seperation between config and cli-values
2016-05-25 20:14:59 +02:00
Thor77
eb9d26cc1e
duplicate debug-enable to get debug-output from parse_config
2016-05-21 23:15:15 +02:00
Thor77
ec62d4f439
refactor __main__.cli and __main__.main
...
* __main__.cli is now just used to setup argparse and pass arguments to __main__.main
* __main__.main is now used to validate the arguments and pass them to the right functions
2016-05-21 22:51:05 +02:00
Thor77
23145b476b
remove cli-defaults for config and idmap
2016-05-21 22:06:32 +02:00
Thor77
b80be2b1c5
add short option-flags to cli
2016-05-21 22:03:26 +02:00
Thor77
2b9e9d0911
add log and output cli-args
2016-05-21 21:35:42 +02:00
Thor77
d820c99ece
move argparse-setup into cli()
2016-05-11 20:21:09 +02:00
Thor77
cbb44fcb85
[config] rename logfile to log and outputpath to output
2016-05-10 22:56:48 +02:00
Thor77
d836b807be
move logging-setup into __init__.py and use one central logger-object
2016-05-10 22:50:34 +02:00
Thor77
a25a596d02
split tsstats.py into package with multiple files
2016-05-08 21:32:37 +02:00