{"id":17215615,"url":"https://github.com/mendelsshop/simple_file_logger","last_synced_at":"2026-02-15T02:02:46.664Z","repository":{"id":58594768,"uuid":"532644521","full_name":"mendelsshop/simple_file_logger","owner":"mendelsshop","description":"Basic file logger for Rust","archived":false,"fork":false,"pushed_at":"2024-05-09T13:18:08.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T02:23:30.099Z","etag":null,"topics":["logging"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/simple_file_logger","language":"Rust","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/mendelsshop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-04T20:00:01.000Z","updated_at":"2024-05-09T13:15:52.000Z","dependencies_parsed_at":"2024-05-12T00:00:46.739Z","dependency_job_id":null,"html_url":"https://github.com/mendelsshop/simple_file_logger","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.5,"last_synced_commit":"f72153caf02f6ef1969cfd21227fa031f2cc5646"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendelsshop%2Fsimple_file_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendelsshop%2Fsimple_file_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendelsshop%2Fsimple_file_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendelsshop%2Fsimple_file_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendelsshop","download_url":"https://codeload.github.com/mendelsshop/simple_file_logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753731,"owners_count":19691162,"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":["logging"],"created_at":"2024-10-15T03:25:00.544Z","updated_at":"2026-02-15T02:02:46.658Z","avatar_url":"https://github.com/mendelsshop.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![crates.io](https://img.shields.io/crates/v/simple_file_logger.svg?label=latest%20version)](https://crates.io/crates/simple_file_logger) [![Crates.io](https://img.shields.io/crates/d/simple_file_logger?label=crates.io%20downloads)](https://crates.io/crates/simple_file_logger) [![docs.rs](https://docs.rs/simple_file_logger/badge.svg)](https://docs.rs/simple_file_logger/)\n\n# Simple File Logger\n\nA simple file logger for rust.\n\nThe crate [log](https://crates.io/crates/log) is required to use this package. \n\n```\ncargo add log\n```\n\nVery basic setup, just provide an app name and an optional log level.\n\n```rust\nuse simple_file_logger::{init_logger, LogLevel};\nuse log::info;\n\nfn main() {\n    init_logger(\"my_app\", Loglevel::Info).unwrap();\n    info!(\"Hello, world!\");\n}\n```\n\nor if you want to use the default log level (and save typing around 15 characters):\n\n```rust\nuse simple_file_logger::init_logger;\n\nfn main() {\n    init_logger!(\"my_app\").unwrap();\n    info!(\"Hello, world!\");\n}\n```\n\nThe log levels are: `trace`, `debug`, `info` , `warn`, `error`.\n\nThe log file is located:\n\n| OS | Path | Example |\n| --- | --- | --- |\n|Windows| %FOLDERID_LocalAppData%\\program_name\\log\\program_nametime_stamp.log | C:\\Users\\username\\AppData\\Local\\program_name\\log\\program_name_2020-05-01T12-34-56.log|\n|Linux| $XDG_DATA_HOME/program_name/log/program_name_time_stamp.log |/home/username/.local/share/program_name/log/program_name_2020-05-01T12-34-56.log|\n|macOS| $HOME/Library/Application Support/program_name/log/program_nametime_stamp.log |Users/username/Library/Application Support/program_name/log/program_name_2020-05-01T12-34-56.log|\n\n## Optional features\n\n- clap: enable clap parsing for LogLevel, Uses the ValueEnum proc-macro.\n- serde: enable serde serialization and deserialization on LogLevel.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendelsshop%2Fsimple_file_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendelsshop%2Fsimple_file_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendelsshop%2Fsimple_file_logger/lists"}