{"id":42230603,"url":"https://github.com/fpessolano/mlogger","last_synced_at":"2026-01-27T03:05:34.815Z","repository":{"id":125894509,"uuid":"252302380","full_name":"fpessolano/mlogger","owner":"fpessolano","description":"Golang module for multi file aggregating level logging","archived":false,"fork":false,"pushed_at":"2023-01-26T19:18:24.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T05:01:55.435Z","etag":null,"topics":["accumulation","golang","logfile","mlogger"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fpessolano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-01T22:41:37.000Z","updated_at":"2023-03-01T09:33:47.000Z","dependencies_parsed_at":"2024-06-20T04:27:05.761Z","dependency_job_id":null,"html_url":"https://github.com/fpessolano/mlogger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fpessolano/mlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpessolano%2Fmlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpessolano%2Fmlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpessolano%2Fmlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpessolano%2Fmlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpessolano","download_url":"https://codeload.github.com/fpessolano/mlogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpessolano%2Fmlogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["accumulation","golang","logfile","mlogger"],"created_at":"2026-01-27T03:05:34.052Z","updated_at":"2026-01-27T03:05:34.810Z","avatar_url":"https://github.com/fpessolano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MLOGGER  \nAbout:      module for multi file level logging  \nAuthor:     F.Pessolano  \nLicence:    MIT  \n\nNO LONGER SUPPORTED\n\n**Description**  \nModule for implementing centralised level loggers with multiple files and aggregation of log lines.  \nEach log line follows this format:  \n\n    DATE_LINE_CREATION    ID  LEVEL   MESSAGE DATA    DATE_LAST_CHANGE\n\nThe mlogger module supports as level LOG, INFO, ERROR, WARNING, RECOVERED amd PANIC. Apart from the traditional message, data can be included in the log line\nand it can be accumulated over time (in this case the last update date is also added as of the first accumulation). \nLog files are stored in the folder ./log/   \n\n**Initialisation**  \nA logger is initialised with:\n\n    logId, er := mlogger.DeclareLog(name, date) \n\nWhere _name_ is the logfile name. A log file is created everyday and the date appended to the name if _date_ is _true_.  \nAn id is given in _logId_ (int) and an _er_ error returned if any.  \nThe logfile is formatted with the methods:  \n\n    mlogger.SetTextLimit(logId, lm, li, ll)\n    \nWhere _lm_, _li_ and _ll_ are the number of maximum characters to be used for the message text, id and level. If 0 is given, no restriction will be used.\nThe logs can also be set to echo all written liones to the console by togglingthe verbose flag:\n\n    mlogger.Verbose({true|false})\n\n\n**Usage**\nA log line can be stored by using a method associated to a given level (Log, Info, Error, Warning, Recovered amd Panic). For example:  \n\n    mlogger.Log(logId, LoggerData{Id: string, Message: string, Data: []int, Agregate: bool})  \n    \n_LoggerData_ is a struct containing the log line data.\nWhen _Aggregate_ is true, the data in _Data_ will be summed and the old first written log line will be updated with the new value and the latest modification date.  \nThe _mlogger.Panic_ level method accept an additional parameter:\n\n    mlogger.Panic(logId, LoggerData{Id: id, Message: message, Data: data, Agregate: aggregate}, quit)  \n\n_Quit_ is a bool. When set, it will force the execution to brutally halt.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpessolano%2Fmlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpessolano%2Fmlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpessolano%2Fmlogger/lists"}