pulsepm / pulse

Unofficial package manager written in python.
MIT License
4 stars 0 forks source link

Stroke - Pulse Logging Wizard #37

Closed Mergevos closed 3 months ago

Mergevos commented 5 months ago

Logging should be done through 5 levels.

  1. Debug - Prints all messages through function
  2. Info - informational messages, output all those steps
  3. Warning - Warnings, program can continue execution.
  4. Error - Errors. Programs fails with error code.

Stroke - Pulse Logging wizard, executed by pulse stroke <code> will output the all detailed thing to a .json file. It should have date and time of the error, title of the bug along with the full description of it. Below it it should have the description on thow to reproduce it.

It should look like this:

{
  "error": {
    "timestamp": "2024-04-01T12:34:56Z",
    "message": "Disassembled Laptop",
    "details": "I disassembled the laptop disconnected the battery for an hour. Unsoldered bios chip, it's called: w25q64jvsiq btw"
  },
  "fix": {
    "description": "I guess I need to unsolder the SanDisk SDINADF4-32G. and most likely put in a temporary hard drive and boot from it",
    "suggested_actions": [
      "Get unsolder the SanDisk SDINADF4-32G.",
      "Put in temporary hdd to boot from it.",
      "Sell for component and пусть тот кто его купил, ебётся как хочет с ним."
    ]
  }
}

Example took from conversation with @Ykpauneu