{"id":19414985,"url":"https://github.com/jakeroggenbuck/mongofastlogger","last_synced_at":"2026-05-15T00:41:39.324Z","repository":{"id":56056161,"uuid":"298951459","full_name":"JakeRoggenbuck/mongofastlogger","owner":"JakeRoggenbuck","description":"A simple and fask logging library that uses the power of mongodb to save and query logs (with built in cli)","archived":false,"fork":false,"pushed_at":"2021-01-16T02:33:03.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T18:54:08.440Z","etag":null,"topics":["cli","mongodb","pip"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mongofastlogger/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakeRoggenbuck.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-09-27T04:16:28.000Z","updated_at":"2021-01-16T02:33:05.000Z","dependencies_parsed_at":"2022-08-15T12:20:29.138Z","dependency_job_id":null,"html_url":"https://github.com/JakeRoggenbuck/mongofastlogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fmongofastlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fmongofastlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fmongofastlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeRoggenbuck%2Fmongofastlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeRoggenbuck","download_url":"https://codeload.github.com/JakeRoggenbuck/mongofastlogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593183,"owners_count":19825939,"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":["cli","mongodb","pip"],"created_at":"2024-11-10T12:41:11.821Z","updated_at":"2026-05-15T00:41:39.270Z","avatar_url":"https://github.com/JakeRoggenbuck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://pypi.org/project/mongofastlogger/\"\u003e![Version](https://img.shields.io/pypi/v/mongofastlogger)\u003c/a\u003e\n\n# Logger\nA simple and fask logging library that uses the power of mongodb to save and query logs (with built in cli)\n\n## Cli\n```sh\n# search\nsearch \u003ctag\u003e \u003clogger_name\u003e\nmongofastlogger search Info\n\n# clear\nclear \u003clogger_name\u003e\nmongofastlogger clear\n\n# log\nlog \u003ctag\u003e \u003cmessage\u003e \u003clogger_name\u003e\nmongofastlogger log Info \"This is a log message\"\n\n# view\nview \u003clogger_name\u003e\nmongofastlogger view\n\n# export\nexport \u003cfilename\u003e \u003clogger_name\u003e\nmongofastlogger export filename.log\n\n# last\nlast \u003cmetric\u003e \u003camount\u003e \u003clogger_name\u003e\nmongofastlogger last hours 3\n\n# help\nfind commands\npython3 mongofastlogger\n\nhelp with specific commands\nmongofastlogger command --help\n\n# other info\n\u003clogger_name\u003e is optional and is 'logs' by default\n```\n\n## Library\n```py\nfrom mongofastlogger import LogViewer, Logger\n\n\n# Make logger\nlogger = Logger()\n# Log message with tag of \"Something\"\nlogger.log(\"Something\", \"This is bad as well i guess but i dont actually know\")\n# Log message with tag of \"Something\" and display log in console\nlogger.log(\"Something\", \"This is a message\", display=True)\n\n# Make Viewer\nviewer = LogViewer()\n# Print all logs\nviewer.view_log()\n\n# Search logs that have the tag \"Something\"\nviewer.search_logs_by_tag(\"Something\")\n# Search logs in the last 3 days\nviewer.check_by_time(\"days\", 3)\n# Export logs to example.log\nviewer.export_log(\"example.log\")\n\nprint(\"Production\")\n\n# Make logger with name\nproduction_logger = Logger(\"Production\")\nproduction_logger.log(\"Error\", \"Critical error in production\")\n\n# Make viewer with name\nproduction_viewer = LogViewer(\"Production\")\nproduction_viewer.view_log()\n```\n\n### Todo\nMake readme more easy to read, especially comments in code and command line instructions\u003cbr\u003e\nMake last use \"amount metric\" format because it is more intuitive\u003cbr\u003e\nMake last have more time metrics, like month and year\u003cbr\u003e\nMake actual docs for how to use this and its commands, and cli\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeroggenbuck%2Fmongofastlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeroggenbuck%2Fmongofastlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeroggenbuck%2Fmongofastlogger/lists"}