Implement --log CLI argument with rx and tx options#84
Conversation
73b64da to
64a8fa8
Compare
|
Alright, maybe this could be an option. Just remember that we're sacrificing extensibility, so don't expect me to consider any future requests regarding advanced filtering or categories. Do we need combined categories like |
This is already quite a flexible arrangement, any more advanced filtering than what's done here would require the parameters to be in a very specific order which would make the command line interface too difficult to understand.
Are you suggesting that it would be less confusing if the presence of an |
Enables additional logging, and takes an optional list of log categories to enable, with filtering by message code number. Co-authored-by: Mat <mail@mathias.is>
Adds proper support for shell quoted values (like "file name.db") with strict rejection of misplaced or unexpected inputs.
|
I pushed a change to the cli module to callback an array of DetailsThis constrains an option to take only its correct amount of values (i.e. zero or one, except for options with `defaults`) which makes the argument parser output more helpful syntax exception messages...
|
Enables additional logging, and takes an optional list of log categories to enable, with filtering by message code number. Co-authored-by: Mat <mail@mathias.is> Co-authored-by: JP Dillingham <jp@dillingham.me>
Adds proper support for shell quoted values (like "file name.db") with strict rejection of misplaced or unexpected inputs.
|
@jpdillingham This is the working branch you can use it like |
Enables additional logging, and takes an optional list of log categories to enable, with filtering by message code number.
--logcategories:conn: Connectionsdb: Database operationsmsg: Includes bothrandtr: Received network messagesrx: Received network messages with hexadecimal bytest: Transmitted network messagestx: Transmitted network messages with hexadecimal bytesx: Includes bothrxandtx1..1003: Filter by message codeBased on PR #81 by @jpdillingham and PR #82 by @mathiascode