Make logs accessible #7
Labels
No labels
ci
crate/dtmm
crate/dtmt
crate/sdk
crate/serde_sjson
kind
bug
kind
documentation
kind
enhancement
kind
feature
kind
question
kind
upstream
part/bundle
part/filetype
stage
actionable
stage
design
stage
proposal
status/duplicate
status/good first issue
status/help wanted
status/invalid
status
need-replicate
status/wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: bitsquid_dt/dtmt#7
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since the GUI app will rarely be started from a command line, logs on stdout/stderr won't be useful.
Ideally, there should be an event log within the UI itself, e.g. a read-only textbox at the bottom.
For a "good enough" first implementation, the production version should simply log to a file.
Certain actions, like mod deployment and profile save, should probably even show a dialog message on error.
Fancy handling for the dialog:
The first error in the chain is displayed as the error text. The rest of the chain is put into a "Reason" text box.
If there are suggestions, they should be displayed prominently.
Both for the "log" UI view and the dialog boxes, the worker thread could probably be used.
tracing
events are sent through the channel as aAsyncAction::Log
orAsyncAction::Error
, and this sends back immediately a command to add a log line to aVector
in state or to open the dialog box (or both).Log lines in the UI view should not contain any
tracing
information, except perhaps the fields.Potential format:
The now-implemented log view widget should be good enough for the MVP release