Skip to content

Appending log data to same logfile after (physical)usb disconnects #6

Description

@HendryKaak

As the title suggests, this simplifies the amount of generated files. Especially when the extruder has been stopped in the meantime or if the USB-cable has been accidentally disconnected.
Logging by date/time is indeed useful only for that same day/extrusion session, appending data from one day to another day's file could cause confusion by the user if appending is done without notice.

I think that the following things should be done to avoid confusion and make this feature more useful:

  1. Files may be appended only for files on the same day or within a few hours, mainly because this would be a whole new extrusion session.
  2. Appending may only happen when asked by user.
    a) Mainly because users will know that it will be added to the same file(prompt notification with the "last known/previous" file name).
    b) When users decline from appending to the "last know" file. It should create a new file with a new timestamp. You might need to make it clearer to where the date and timestamp splits up, because ".Format("2006-01-02-15-04-05")" is very annoying to read with all the same separators("-"). Maybe a format like this ".Format("2006-01-02@15-04-05")" or underscore is recommended.
  3. Later on we can even let the user determine the format of the timestamp in the filename, but this would be an additional feature later on(e.g. "Name_"{YYYY-MM-dd@HH-mm}).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions