{"id":18445495,"url":"https://github.com/xxmacmillanxx/vlog","last_synced_at":"2026-01-23T16:37:52.499Z","repository":{"id":197485144,"uuid":"698739184","full_name":"xXMacMillanXx/vlog","owner":"xXMacMillanXx","description":"A simple V module for logging capabilities.","archived":false,"fork":false,"pushed_at":"2023-10-09T22:46:14.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T05:35:05.339Z","etag":null,"topics":["vlang","vlang-module","vlang-package"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xXMacMillanXx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-30T20:13:19.000Z","updated_at":"2024-08-24T02:13:37.000Z","dependencies_parsed_at":"2024-12-25T01:42:24.344Z","dependency_job_id":"97c76063-2534-4422-8fa8-96f39249f010","html_url":"https://github.com/xXMacMillanXx/vlog","commit_stats":null,"previous_names":["xxmacmillanxx/vlog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xXMacMillanXx/vlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xXMacMillanXx%2Fvlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xXMacMillanXx%2Fvlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xXMacMillanXx%2Fvlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xXMacMillanXx%2Fvlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xXMacMillanXx","download_url":"https://codeload.github.com/xXMacMillanXx/vlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xXMacMillanXx%2Fvlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["vlang","vlang-module","vlang-package"],"created_at":"2024-11-06T07:06:09.600Z","updated_at":"2026-01-23T16:37:52.479Z","avatar_url":"https://github.com/xXMacMillanXx.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vlog\n\nIMPORTANT!  \nThis module is currently depricated, since I found out that V has its own log module.  \nI still might continue working on this module for practice, but probably not to release it as a finished module.  \nIf you are looking for a V log module, just use `import log`.\n\nvlog is a module for the V language. It provides simple to use logging capabilities.\nYou can specify a severity for your log entries and decide which of those should be logged.\nLog entries can be output on the terminal, a log file or both. Currently, everytime the program runs, a new log file gets created, there is no functionality to reuse the same log file, yet.\n\n# Usage\n\n```v\nmodule main\n\nimport vlog\n\nmut logger := vlog.Logger.new()\n\nx := 5\nlogger.log(vlog.Severity.debug, 'Value of x: ${x}')\n```\n\nSeverity provides debug, normal, warning and error, so you can specify if an entry is a debug message, information, a warning (e.g., a reconnect to a server) or an error (e.g., information why the program stopped).\nYou can specify with the 'logger' which severities should be logger, so if you need less logs / information you could only log entries with severity warning and error.\n\n```v\nmodule main\n\nimport vlog\n\nmut logger := vlog.Logger.new()\nlogger.track_severities(.warning | .error)\n\nx := 5\nlogger.log(.debug, 'Value of x: ${x}') // not logged\nlogger.log(.warning, 'This will be logged')\n```\n\nTo write to a log file you can use the following.\n\n```v\nmodule main\n\nimport vlog\n\nmut logger := vlog.Logger.new()\nlogger.set_file_path('./logs/')!\nlogger.set_terminal_output(false)\n\nlogger.log(.normal, 'Gets logged to a file, but not to the terminal output.')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxmacmillanxx%2Fvlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxmacmillanxx%2Fvlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxmacmillanxx%2Fvlog/lists"}