TgLogBot is a service that allows you to send logs from an
application to a telegram bot. Developers now have a convenient
way to send logs from their Android application to a Telegram bot.
This service provides an easy way for developers to keep track of the logs from their application,
without having to manually check the log text. Not only does this save time,
but it also prevents the potential for errors that can occur in manual
log checking. The service is quickly set up and easily integrated
with any Android application, allowing developers to have real-time access
to logs and quickly take action when necessary.
Developers can also customize the bot to their needs, allowing them to send notifications,
store logs, and more. This service is an ideal solution for any Android developer
looking to streamline the process of logging and managing their application data.
You connect it to your project and have the ability to send
debug messages to yourself in telegram. This is an indispensable
debugging tool in case you are unable to connect your test phone
to your computer via USB. Or if you need to debug a device to
which you do not have physical access. All that is needed for
the service to work is the presence of the Internet on the test
phone.
How to use TgLogBot:
1) Press button to Download the latest version of the library.
2) Copy jar file to your project in libs folder
3) Connect the library in the build.gradle file
build.gradle file:
implementation files('libs/TGLogBotLibrary.jar')
4) Initialize the library when your application starts
Java class of your project
TelegrammBotLogger.init(this, your_id);
You can find out your_id directly in the telegram bot by
clicking on the link
https://t.me/md_debugger_bot
and send command /get_id to bot
Use following code To send logs
TelegrammBotLogger.sendLog("Test Message!");