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

unable to send logs using the NewRelic Mobile SDK. #78

Open
hohoins opened this issue Mar 18, 2024 · 5 comments
Open

unable to send logs using the NewRelic Mobile SDK. #78

hohoins opened this issue Mar 18, 2024 · 5 comments

Comments

@hohoins
Copy link

hohoins commented Mar 18, 2024

I am unable to send logs using the NewRelic Mobile SDK.
Does NewRelic Mobile SDK support sending custom text message logs?
I couldn't find the log transfer API in the sdk.
I wonder how I can transmit log messages.

exaple log
log_example

@ndesai-newrelic
Copy link
Collaborator

ndesai-newrelic commented Mar 18, 2024

@hohoins Are you currently utilizing our Logs API for transmitting logs? Please note that our existing Logs API supports TLS 1.2. We're excited to announce plans to incorporate logs functionality for mobile in the next quarter. As developments unfold and this feature becomes available, we will provide updates here.

@hohoins
Copy link
Author

hohoins commented Mar 19, 2024

@hohoins Are you currently utilizing our Logs API for transmitting logs? Please note that our existing Logs API supports TLS 1.2. We're excited to announce plans to incorporate logs functionality for mobile in the next quarter. As developments unfold and this feature becomes available, we will provide updates here.

Thank you very much for your reply. 👍👍👍👍👍

What I understand is below:

  • Currently, newrelic-flutter-agent does not have a log transmission function.
  • The log message function will be added to newrelic-flutter-agent in the next quarter, 2024.4 - 2024.6.
  • If I want to send a log message right now, I have to implement the log API myself.
    Is this correct?

Then, we will wait for the log message sending function to be added in the next quarter.
thank you 🙇🙇🙇

@ndesai-newrelic
Copy link
Collaborator

@hohoins we are automatically collected print statement as custom event ,you can do query using this SELECT * FROM Mobile Dart Console Events SINCE 30 MINUTES AGO

@hohoins
Copy link
Author

hohoins commented Mar 19, 2024

@hohoins we are automatically collected print statement as custom event ,you can do query using this SELECT * FROM Mobile Dart Console Events SINCE 30 MINUTES AGO

Does this mean that logs are automatically collected when using 'NewrelicMobile.instance.recordCustomEvent()'?
After this, I can check using the query 'SELECT * FROM Mobile Dart Console Events SINCE 30 MINUTES AGO'.
I couldn't check the log using recordCustomEvent().

I was able to check the log when I directly called 'https://log-api.newrelic.com/log/v1.'

"plans to incorporate logs functionality for mobile in the next quarter."
I look forward to the rapid integration of the LOG API into the newRelic mobile sdk.

thank you

@ndesai-newrelic
Copy link
Collaborator

yes, if you are using print statement anywhere in the flutter, we will automatically collected those statement as logs.

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

No branches or pull requests

2 participants