{"id":18811755,"url":"https://github.com/logicmonitor/nlog-target-logicmonitor","last_synced_at":"2025-07-13T09:36:20.883Z","repository":{"id":150954013,"uuid":"586733005","full_name":"logicmonitor/nlog-target-logicmonitor","owner":"logicmonitor","description":"NLOG.Target.LogicMonitor","archived":false,"fork":false,"pushed_at":"2023-05-16T09:10:05.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-22T03:38:18.980Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicmonitor.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":"2023-01-09T05:01:08.000Z","updated_at":"2023-05-16T09:10:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"90268df9-3929-4121-a674-b89b918ad5d0","html_url":"https://github.com/logicmonitor/nlog-target-logicmonitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/logicmonitor/nlog-target-logicmonitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fnlog-target-logicmonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fnlog-target-logicmonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fnlog-target-logicmonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fnlog-target-logicmonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicmonitor","download_url":"https://codeload.github.com/logicmonitor/nlog-target-logicmonitor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fnlog-target-logicmonitor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265121282,"owners_count":23714501,"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-11-07T23:27:33.829Z","updated_at":"2025-07-13T09:36:20.859Z","avatar_url":"https://github.com/logicmonitor.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NLog.Targets.LogicMonitor\n\nA NLog Target that send events and logs directly to LogicMonitor platform.\nThis Package leverages LogicMonitor.DataSDK to send logs.\n\nExport the following environment variable.\n\n System property   |      Environment variable      |  Description |\n|----------|-------------|:------|\n| `Configration.company` |  `LM_COMPANY` |  Account name (Company Name) is your organization name |\n| `Configration.AccessID` |  `LM_ACCESS_ID` |  Access id while using LMv1 authentication. (Not needed while using Bearer API )  |\n| `Configration.AccessKey` |  `LM_ACCESS_KEY` |    Access key while using LMv1 authentication. (Not needed while using Bearer API ) |\n\n```csharp\n        var logger = NLog.LogManager.GetCurrentClassLogger();\n        var config = new NLog.Config.LoggingConfiguration();\n\n        // Targets where to log to: Console\n        var logMonitor = new NLog.Targets.LogicMonitor.LogicMonitorTarget();\n\n        // Rules for mapping loggers to targets\n        config.AddRule(LogLevel.Info, LogLevel.Error, logMonitor);\n\n        // Apply config\n        NLog.LogManager.Configuration = config;\n```\n\nor \n\n:point_right: Learn more about [NLog Config](https://github.com/nlog/nlog/wiki/Configuration-file) \n\n```csharp\n//Note.: Add a NLog.Config.xml to your project.\n\nvar logger = NLog.LogManager.Setup().LoadConfigurationFromXml(\"Nlog.Config\").GetCurrentClassLogger();\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Fnlog-target-logicmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicmonitor%2Fnlog-target-logicmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Fnlog-target-logicmonitor/lists"}