Table fix

This commit is contained in:
Simon Beginn 2020-07-31 18:38:09 +02:00
parent 7ce317cb29
commit 79e1a31799
2 changed files with 63 additions and 21 deletions

View File

@ -3,3 +3,5 @@
Some stuff which needs to be done... Some stuff which needs to be done...
* Replace cross-ref links inside wiki * Replace cross-ref links inside wiki
* Get headings under control
* Migrate README

View File

@ -40,7 +40,7 @@ If the two _HWID_ numbers differ too much then the operating system will shut do
The theory behind _HWID_ is to ensure that the operating system is not being used on any device other than the one The theory behind _HWID_ is to ensure that the operating system is not being used on any device other than the one
for which it was purchased and registered. for which it was purchased and registered.
HWID must be an 16-character string of hex characters that are interpreted as a series of 8 bytes (big endian). HWID must be an 16-character string of hex characters that are interpreted as a series of 8 bytes (big endian).
Default is _364F463A8863D35F_. To auto generate the _HWID_, type ```-w RANDOM```. Default is _364F463A8863D35F_. To auto generate the _HWID_, type `-w RANDOM`.
-c or --client-count <CLIENTCOUNT> -c or --client-count <CLIENTCOUNT>
> Use this flag to specify the current _CLIENTCOUNT_. Default is None. Remember that a number >=25 is > Use this flag to specify the current _CLIENTCOUNT_. Default is None. Remember that a number >=25 is
@ -68,30 +68,70 @@ asynchronously reducing time-consuming. Desactivated by default.
-V or --loglevel <{CRITICAL, ERROR, WARNING, INFO, DEBUG, MINI}> -V or --loglevel <{CRITICAL, ERROR, WARNING, INFO, DEBUG, MINI}>
> Use this flag to set a logging loglevel. The default is _ERROR_. > Use this flag to set a logging loglevel. The default is _ERROR_.
example: example:
user@user ~/path/to/folder/py-kms $ ```python3 pykms_Server.py -V INFO``` ```
user@host ~/path/to/folder/py-kms $ python3 pykms_Server.py -V INFO
```
creates _pykms_logserver.log_ with these initial messages: creates _pykms_logserver.log_ with these initial messages:
``` ```
Mon, 12 Jun 2017 22:09:00 INFO TCP server listening at 0.0.0.0 on port 1688. Mon, 12 Jun 2017 22:09:00 INFO TCP server listening at 0.0.0.0 on port 1688.
Mon, 12 Jun 2017 22:09:00 INFO HWID: 364F463A8863D35F Mon, 12 Jun 2017 22:09:00 INFO HWID: 364F463A8863D35F
``` ```
-F or --logfile <LOGFILE> -F or --logfile <LOGFILE>
> Creates a _LOGFILE.log_ logging file. The default is named _pykms_logserver.log_. > Creates a _LOGFILE.log_ logging file. The default is named _pykms_logserver.log_.
example: example:
user@user ~/path/to/folder/py-kms $ ```python3 pykms_Server.py 192.168.1.102 8080 -F ~/path/to/folder/py-kms/newlogfile.log -V INFO -w RANDOM``` ```
user@user ~/path/to/folder/py-kms $ python3 pykms_Server.py 192.168.1.102 8080 -F ~/path/to/folder/py-kms/newlogfile.log -V INFO -w RANDOM
```
creates _newlogfile.log_ with these initial messages: creates _newlogfile.log_ with these initial messages:
``` ```
Mon, 12 Jun 2017 22:09:00 INFO TCP server listening at 192.168.1.102 on port 8080. Mon, 12 Jun 2017 22:09:00 INFO TCP server listening at 192.168.1.102 on port 8080.
Mon, 12 Jun 2017 22:09:00 INFO HWID: 58C4F4E53AE14224 Mon, 12 Jun 2017 22:09:00 INFO HWID: 58C4F4E53AE14224
``` ```
You can also enable other suboptions of ```-F``` doing what is reported in the following table: You can also enable other suboptions of `-F` doing what is reported in the following table:
| command | pretty msg | logging msg | logfile | <table>
|-------------------------------|:----------:|:-----------:|:-------:| <thead>
| ```-F <logfile>``` | ON | OFF | ON | <tr>
| ```-F STDOUT``` | OFF | ON | OFF | <th>command</th>
| ```-F FILESTDOUT <logfile>``` | OFF | ON | ON | <th>pretty msg</th>
| ```-F STDOUTOFF <logfile>``` | OFF | OFF | ON | <th>logging msg</th>
| ```-F FILEOFF``` | ON | OFF | OFF | <th>logfile</th>
</tr>
</thead>
<tbody>
<tr>
<td>`-F <logfile>`</td>
<td>ON</td>
<td>OFF</td>
<td>ON</td>
</tr>
<tr>
<td>`-F STDOUT`</td>
<td>OFF</td>
<td>ON</td>
<td>OFF</td>
</tr>
<tr>
<td>`-F FILESTDOUT <logfile>`</td>
<td>OFF</td>
<td>ON</td>
<td>ON</td>
</tr>
<tr>
<td>`-F STDOUTOFF <logfile>`</td>
<td>OFF</td>
<td>OFF</td>
<td>ON</td>
</tr>
<tr>
<td>`-F FILEOFF`</td>
<td>ON</td>
<td>OFF</td>
<td>OFF</td>
</tr>
</tbody>
</table>
-S or --logsize <MAXSIZE> -S or --logsize <MAXSIZE>
> Use this flag to set a maximum size (in MB) to the output log file. Desactivated by default. > Use this flag to set a maximum size (in MB) to the output log file. Desactivated by default.