Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Application Logs #111

Open
garrylachman opened this issue Feb 14, 2022 · 3 comments
Open

Add Application Logs #111

garrylachman opened this issue Feb 14, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@garrylachman
Copy link

  • Add tabs/dropdown to switch between xmrig logs and application logs in logs screen.
  • Create a Logging Service in Kotlin, the logs will sent as event after formatting like XMRig logs.
  • Report log events from UI to Native Module (Kotlin).

Each logs report must contains:

  • ts - Report timestamp
  • level - Report level (TRACE, DEBUG, INFO, WARN, ERROR, FATAL)
  • module - one of
    • RN (React native / User Interface)
    • Native (Kotlin/Java Native "backend")
  • class - Reporter class/feature
  • msg - Log content

Example:

enum LogLevel {
  TRACE = 1,
  DEBUG = 2,
  INFO = 3,
...
}

enum LogModule {
  RN = 1,
  NATIVE = 2,
}

{
  "ts": 1644853187005,
  "level": LogLevel.DEBUG,
  "module": LogModule.RN,
  "class": "MinerScreen",
  "msg": "Miner screen has been loaded",
}
@garrylachman garrylachman self-assigned this Feb 14, 2022
@garrylachman garrylachman added the enhancement New feature or request label Feb 14, 2022
@garrylachman
Copy link
Author

/cib

@create-issue-branch
Copy link

Branch issue-111-Add_Application_Logs created!

@github-actions
Copy link

Branch already exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant