Flutter: FLog and Logger - flutter

I am new in flutter and I am building an app in flutter and looking for logging options. I know there are several logging packages available like logger and flog. These loggers logs in console, but how these can working in production. In production there is no console and how I can debug the app if I don't have access to log files. Do i need to store logs to local storage and have ability to export these files.
Please advise.
Thanks,

Check out Firebase Analytics which should allow you to collect logs on devices in production and view them from from the web console, along with a ton of other useful information.
https://firebase.flutter.dev/docs/analytics/overview

Related

Can we see logs(info) of an ionic app in PROD?

I search a way to see logs of an ionic application in PROD. I'm talking about logs info and not logs error (I know there are some platform which capture errors like Sentry). The goal is to have more data to solve issue i get in prod.
Thanks you.

Using Firebase's reserved hosted URLs for local flutter development

I'm developing an app in flutter and deploying it to Firebase hosting.
Firebase hosting and the firebase serve command for local development let you initialize Firebase from a special auto-generated relative URL (/__/firebase/init.js).
This is nice because it allows me to share my project (on github, for example) without including my Firebase configuration.
Sadly, this does not seem to play nice with flutter run -- if I use flutter run, I lose the special URLs, and if I use firebase serve, I lose flutter's hot reload features.
My current workaround is to have the following local files under my app/web/ directory:
__/firebase/init.js # containing firebase.initializeApp(myFirebaseConfig);
__/firebase/7.1.44/firebase-app.js # manually downloaded from the gstatic cdn
__/firebase/7.1.44/firebase-auth.js
# ... (etc)
This works, but:
The __ directory actually gets deployed to Firebase. (Not actually a problem, but it seems wrong)
It's annoying to set this up manually in each local development environment.
Ideally, one should be able to firebase login, firebase init, and then flutter serve, and then automagically have access to the /__/ directory.
Is there already some way to make this happen, and if not, how could we implement it?
(For example, is there a way to extend flutter's local http server to take advantage of the logic that's already in the firebase-tools npm module?)

Deploying Flutter Web App To Hostgator/normal FTP means?

I have been really interested in Flutter for the last few months and have been following the beta Flutter for web information. I was wondering, other than the ones mentioned in the documentation (Firebase, Github, Google Cloud), is there a way to currently test my app via using my Hostgator hosting and use something like Filezilla to publish the application/site?
I understand this is in a beta state. I only ask because the documentation states that there is a way to publish via those services but doesn't mention the way I am asking. I also understand that this is not production-ready.
Thank you all for any help
You can just run:
flutter build web
And then copy the contents of build/web to your web host's document root via a panel or FTP or something else.

Refreshing Cloud Foundry app page on Bluemix "Stopped" the app

#ibm,
I observed the slowness while running the Cloud Foundry app on Bluemix. Sometimes, it gets really irritated so when I tried to refresh the app, it even stopped the app which was very frustrating. Could you please let us know the root cause of this and is there any way to avoid this in future ?
Refreshing the cloud Foundry page has nothing to do with crashing of your app. Could you please provide some more details like:
Functionality you are trying.
Deployment Approach.
Whether the application is Liberty Java, NodeJS or something else.
And lastly your application logs. If you cannot copy directly from the logs, you can use the Log Analysis Service to copy the logs.
NOTE: I should have added this as a comment but I am still 35 reputation short.

Logging in Talend ESB

We had a web service developed in Talend and deployed in TAC(Talend runtime). Service is working fine on the local system but not after the deployment.We had tried various methods to debug it like placing the logger component and putting logging mechanism in Java component of Talend but those messages are not populating in the log file.Please suggest.
Talend Enterprise 5.6 comes with log4j logging. (It can be enabled in the project settings.) Maybe open studio has this feature as well.
If you activate that and start the logserver (based on Kibana / Logstash) you could have a web interface that shows the log messages in real-time, across all the deploys you have.
We're using this approach for development and some production projects. It tells you all the SQL-s connection details, execution times, records fetched, etc..
In TAC you should see the same logs if you click on the magnifier button on the corresponding job on Job Conductor tab. In case if it's empty, check the log4j setting in File->Edit Project Properties->Log4J, and make sure that the default CONSOLE appender is enabled. Also try to build the project manually, and check the log4j.properties in the built zip file.
Finally check the log level at the job properties on TAC->Job Conductor, and make sure it set to the right level.