{"id":16213604,"url":"https://github.com/gaurpulkit/logger","last_synced_at":"2026-05-04T05:36:37.922Z","repository":{"id":52911207,"uuid":"303666398","full_name":"gaurpulkit/Logger","owner":"gaurpulkit","description":"Create logs on Discord, Telegram or a local file","archived":false,"fork":false,"pushed_at":"2021-04-14T08:19:04.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T22:15:12.280Z","etag":null,"topics":["bot","discord","file","log","logger","logging","python","telegram"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaurpulkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-13T10:26:06.000Z","updated_at":"2021-04-14T08:17:14.000Z","dependencies_parsed_at":"2022-08-23T18:40:52.203Z","dependency_job_id":null,"html_url":"https://github.com/gaurpulkit/Logger","commit_stats":null,"previous_names":["zuj3brusu/logger"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaurpulkit%2FLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaurpulkit%2FLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaurpulkit%2FLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaurpulkit%2FLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaurpulkit","download_url":"https://codeload.github.com/gaurpulkit/Logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737785,"owners_count":20987721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","file","log","logger","logging","python","telegram"],"created_at":"2024-10-10T11:06:46.354Z","updated_at":"2026-05-04T05:36:37.860Z","avatar_url":"https://github.com/gaurpulkit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger\nA Python Module to create logs on Discord, Telegram or a local file\n\n## Installation\nEither\n```bash\npip install Logger-Zuj3brusu\n```\nOr\n```bash\npip install git+git://github.com/Zuj3brusu/Logger.git\n```\n\n## Usage\n### Initialization\n```python\nfrom Logger import logger\n\n# Creating a Logger object\nloggerObject = logger.Logger()\n```\n\n#### Initialize Discord Logger (Optional / Only needed to send Discord Logs)\nOne way to do this is to directly set the values of DcUrl and DcBotName while initializing the logger. Another way to do this is\n```python\n# Set the values of Discord Webhook url and Bot Name\nloggerObject.setDiscord(DcUrl = \u003cChannel Webhook\u003e, DcBotName = \u003cName of the Bot\u003e)\n\n# Start the Discord Logger\nloggerObject.startDiscordLogger()\n```\n\n\n#### Initialize Telegram Logger (Optional / Only needed to send Telegram Logs)\nOne way to do this is to directly set the values of TgChatID and TgbotAPI while initializing the logger. Another way to do this is\n```python\n# Set the values of Telegram Chat ID and Bot API\nloggerObject.setTelegram(TgChatID = \u003cChat ID\u003e, TgbotAPI = \u003cBot API\u003e)\n\n# Start the Telegram Logger\nloggerObject.startDiscordLogger()\n```\n\n\n#### Initialize FileLogger\nWhile the FileLogger is initialized by default, you can still change any/all of the parameters.\nOne way to do this is to directly set the values of FileLogger parameters while initializing the logger. Another way to do this is\n```python\n# Set the values of Telegram Chat ID and Bot API\nloggerObject.setFileLogger(\n\tLogFolderLocation = \u003cLogFolderLocation\u003e,\n\tLogFileName       = \u003cLogFileName\u003e,\n\tLogFileMode       = \u003cLogFileMode\u003e,\n\tLogFormat         = \u003cLogFormat\u003e,\n\tLogLevel          = \u003cLogLevel\u003e\n\t)\n\n# Start the FileLogger\nloggerObject.startFileLogger()\n```\n\n\n### Sending a log\nLogs can be sent using any/all Logger(s). You just need to set the values of parameters to `True` for the Loggers for which you want to send the logs.\n\n`print` Determines whether to print success or error messages.\n```python\nlog=\"Hello World\"\n\nloggerObject.send(log,discord=True,telegram=True,filelogs=True,print=True)\n```\n\n## Thanks for checking it out!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaurpulkit%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaurpulkit%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaurpulkit%2Flogger/lists"}