{"id":13595302,"url":"https://github.com/ihtfw/Logazmic","last_synced_at":"2025-04-09T10:33:27.038Z","repository":{"id":2212192,"uuid":"21410098","full_name":"ihtfw/Logazmic","owner":"ihtfw","description":"Windows log viewer for log4j","archived":false,"fork":false,"pushed_at":"2024-10-30T10:38:17.000Z","size":24008,"stargazers_count":59,"open_issues_count":2,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-04T16:31:11.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/ihtfw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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":"2014-07-02T03:18:41.000Z","updated_at":"2024-10-30T10:03:59.000Z","dependencies_parsed_at":"2024-11-06T17:39:27.717Z","dependency_job_id":"491ffcda-62da-4d8b-8f1e-3a9543fa7a6c","html_url":"https://github.com/ihtfw/Logazmic","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtfw%2FLogazmic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtfw%2FLogazmic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtfw%2FLogazmic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtfw%2FLogazmic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihtfw","download_url":"https://codeload.github.com/ihtfw/Logazmic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247252356,"owners_count":20908674,"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":[],"created_at":"2024-08-01T16:01:47.307Z","updated_at":"2025-04-09T10:33:22.029Z","avatar_url":"https://github.com/ihtfw.png","language":"C#","funding_links":[],"categories":["C#","C\\#","Logging","日志","Parsing"],"sub_categories":["GUI - other"],"readme":"Logazmic\n========\n\u003cimg src=\"https://raw.githubusercontent.com/ihtfw/Logazmic/master/docs/appbar.flag.bear.png\" alt=\"Icon\" width=\"64px\" height=\"64px\" /\u003e\n\u003cimg src=\"https://ci.appveyor.com/api/projects/status/ns7gdofc8w4so32m?svg=true\" width=\"300\"\u003e\n\n\nMinimalistic log viewer for nlog. Supports only log4j xml layout yet. Core is based on [Log2console](https://log2console.codeplex.com/). UI is rewritten in WPF with usage of [MahApps.Metro](https://github.com/MahApps/MahApps.Metro)\n\n## Supports:\n* Listening on tcp/udp\n* Opening *.log4j files \n* Drag-and-drop files\n\n## Download \nhttps://github.com/ihtfw/Logazmic/releases/latest/\n\n## Screenshots:\n\n![Alt Logazmic screenshot 1](https://raw.githubusercontent.com/ihtfw/Logazmic/master/docs/screenshot1.png) ![Alt Logazmic screenshot 1](https://raw.githubusercontent.com/ihtfw/Logazmic/master/docs/screenshot2.png)\n\n\n\n## Setup \n### NLog (http://nlog-project.org/):\n### Xml configuration\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\" ?\u003e\n\u003cnlog xmlns=\"http://www.nlog-project.org/schemas/NLog.xsd\"\n      xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\u003e\n    \u003ctargets\u003e\n        \u003ctarget name=\"logfile\"  layout=\"${log4jxmlevent}\"  xsi:type=\"File\" fileName=\"file.txt\" /\u003e\n    \u003c/targets\u003e\n\n    \u003crules\u003e\n        \u003clogger name=\"*\" minlevel=\"Info\" writeTo=\"logfile\" /\u003e\n    \u003c/rules\u003e\n\u003c/nlog\u003e\n```\n### Code configuration\n```csharp\nvar config = new LoggingConfiguration(); \n\n#region file\nvar ftXml = new FileTarget\n                        {\n                            FileName = XmlLogPath,\n                            Layout = \" ${log4jxmlevent}\",\n                            Encoding = Encoding.UTF8,\n                            ArchiveEvery = FileArchivePeriod.Day,\n                            ArchiveNumbering = ArchiveNumberingMode.Rolling\n                        };\n\nvar asXml = new AsyncTargetWrapper(ftXml);\nvar ruleXml = new LoggingRule(\"*\", LogLevel.Trace, asXml);\nconfig.LoggingRules.Add(ruleXml);\n#endregion\n\n#region tcp\nvar tcpNetworkTarget = new NLogViewerTarget\n                                   {\n                                       Address = \"tcp4://127.0.0.1:4505\",\n                                       Encoding = Encoding.UTF8,\n                                       Name = \"NLogViewer\",\n                                       IncludeNLogData = false\n                                   };\nvar tcpNetworkRule = new LoggingRule(\"*\", LogLevel.Trace, tcpNetworkTarget);\nconfig.LoggingRules.Add(tcpNetworkRule);\n#endregion\n\nLogManager.Configuration = config;\n```\n\u003c!---\n### Log4net\n```xml\n\u003cappender name=\\\"FileAppender\\\" type=\\\"log4net.Appender.FileAppender\\\"\u003e\n    \u003cfile value=\\\"log-file.txt\\\" /\u003e\n    \u003cappendToFile value=\\\"true\\\" /\u003e\n    \u003clockingModel type=\\\"log4net.Appender.FileAppender+MinimalLock\\\" /\u003e\n    \u003clayout type=\\\"log4net.Layout.XmlLayoutSchemaLog4j\\\" /\u003e\n\u003c/appender\u003e\n```\n--\u003e\n\n### Logazmic.Integration\n\u003cimg src=\"https://raw.githubusercontent.com/ihtfw/Logazmic/master/docs/appbar.flag.bear.png\" alt=\"Icon\" width=\"64px\" height=\"64px\" /\u003e\n\u003cimg src=\"https://ci.appveyor.com/api/projects/status/n45ye34e920c7c5k?svg=true\" width=\"300\"\u003e\n\nInstall nuget package \u003ca href=\"https://www.nuget.org/packages/Logazmic.Integration/\"\u003eLogazmic.Integration\u003c/a\u003e. In your code to install, run and open log file\n```csharp\n var runner = new Logazmic.Integration.Runner();\n runner.Run(pathToLogFile);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihtfw%2FLogazmic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihtfw%2FLogazmic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihtfw%2FLogazmic/lists"}