Skip to main content

Log Manager

The Log Manager module allows you to view, search, and manage logs generated by XPManager operations.

Commands

Clear

Clear/Delete all logs from the log database.

$ xpm log-manager|lm clear

# Example:
$ xpm lm clear

Show

Display logs from the log database.

  • show all logs
$ xpm log-manager|lm show

# Example:
$ xpm lm show
info
  • OUTPUT example:
╭─────┬─────────────────────────────────────────────────────┬─────────────────────╮
│ id │ log │ create_at │
├─────┼─────────────────────────────────────────────────────┼─────────────────────┤
│ 1 │ file '~/myfolder/passwords.db' wiped │ 2025-04-10 06:38:18 │
│ 2 │ encrypt file at '~/myfolder/passwords.db' │ 2025-04-10 07:06:06 │
│ 3 │ file '~/myfolder/passwords.db' encrypted │ 2025-04-10 07:06:31 │
│ 4 │ password with id 2 updated │ 2025-04-10 10:59:58 │
│ 5 │ delete password with id 3: rows affected 1 │ 2025-04-10 11:07:30 │
╰─────┴─────────────────────────────────────────────────────┴─────────────────────╯
  • show the last number of logs in descending order
$ xpm log-manager|lm show --length|-l <LENGTH>

# Example:
$ xpm lm show -l 4
info
  • OUTPUT example:
╭─────┬─────────────────────────────────────────────────────┬─────────────────────╮
│ id │ log │ create_at │
├─────┼─────────────────────────────────────────────────────┼─────────────────────┤
│ 4 │ password with id 2 updated │ 2025-04-10 10:59:58 │
│ 3 │ file '~/myfolder/passwords.db' encrypted │ 2025-04-10 07:06:31 │
│ 2 │ encrypt file at '~/myfolder/passwords.db' │ 2025-04-10 07:06:06 │
│ 1 │ file '~/myfolder/passwords.db' wiped │ 2025-04-10 06:38:18 │
╰─────┴─────────────────────────────────────────────────────┴─────────────────────╯

Find

Search for logs in the log database.

  • find logs based on year
$ xpm log-manager|lm find date --year <YEAR>

# Example:
$ xpm lm find date --year 2025
  • find logs based on month
$ xpm log-manager|lm find date --month <MONTH>

# Example:
$ xpm lm find date --month 4
  • find logs based on day
$ xpm log-manager|lm find date --day <DAY>

# Example:
$ xpm lm find date --day 10
  • find logs based on date
$ xpm log-manager|lm find date --year <YEAR> --month <MONTH> --day <DAY>

# Example:
$ xpm lm find date --year 2025 --month 4 --day 10
  • find using string
$ xpm log-manager|lm find string <STRING>

# Example:
$ xpm lm find string "passwords"

Delete

Delete specific logs from the log database.

$ xpm log-manager|lm delete <ID>

# Example:
$ xpm lm delete 2