Riferimento API

Log dell'app

Leggi e cancella il file di log rotante di PlainApp. Destinato al debug — solo modalità sviluppatore.

Definizioni di tipo

bash
# appLogs returns an array of plain strings (one per log line, newest-first).
# appLogPath returns the absolute path of the current log file on the device.

Operazioni

query

appLogs

Leggi le righe di log dal file di log rotante, dalle più recenti. Usa offset/limit per la paginazione.

bash
query GetAppLogs($offset: Int!, $limit: Int!) {
  appLogs(offset: $offset, limit: $limit)
}
query

appLogPath

Recupera il percorso filesystem assoluto del file di log corrente.

bash
query GetAppLogPath {
  appLogPath
}
mutation

clearAppLogs

Tronca il file di log corrente.

bash
mutation ClearAppLogs {
  clearAppLogs
}