{"id":14063715,"url":"https://github.com/serverscom/SimpleTextLogger","last_synced_at":"2025-07-29T16:31:24.173Z","repository":{"id":131002433,"uuid":"158448608","full_name":"serverscom/SimpleTextLogger","owner":"serverscom","description":"A simple (but with features), pure-PowerShell logger.","archived":false,"fork":false,"pushed_at":"2019-03-23T18:49:48.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-13T07:05:28.875Z","etag":null,"topics":["logging","powershell","powershell-module"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/SimpleTextLogger/","language":"PowerShell","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/serverscom.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}},"created_at":"2018-11-20T20:41:26.000Z","updated_at":"2024-06-05T12:28:11.000Z","dependencies_parsed_at":"2023-05-24T21:30:17.045Z","dependency_job_id":null,"html_url":"https://github.com/serverscom/SimpleTextLogger","commit_stats":null,"previous_names":["serverscom/simpletextlogger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2FSimpleTextLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2FSimpleTextLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2FSimpleTextLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverscom%2FSimpleTextLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverscom","download_url":"https://codeload.github.com/serverscom/SimpleTextLogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028618,"owners_count":17858419,"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","powershell","powershell-module"],"created_at":"2024-08-13T07:03:28.365Z","updated_at":"2024-12-04T01:31:22.505Z","avatar_url":"https://github.com/serverscom.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# SimpleTextLogger\n\nThis is, yes, yet another PowerShell logging module, a very simple one - it supports only plain text files. It uses mutex to *lock* the log file, but it helps only against other instances of the `Write-SimpleTextLog` function.\n\nThe cool things about this particular module are:\n1. It is written purely in PowerShell. No C#, no external DLLs.\n2. It requires no setup or any kind of supporting infrastructure.\n3. It needs only PowerShell 3.0.\n4. It supports scriptblocks as log line prefixes. The scriptblock will be executed and the result will be used as a prefix.\n5. You can persistently configure the module's parameters with a configuration file (see below)\n6. You can pass messages to the log function through the pipeline.\n\n## Exported functions\n* [Write-SimpleTextLog](docs/Write-SimpleTextLog.md)\n\n## Module-wide variables\nThere are several variables defined in the .psm1-file, which are used by the module's functions as default values for parameters:\n\n`[string]$ModuleWideLogMutexName` - default value for **Write-SimpleTextLog**'s `-MutexName` parameter\n\n`[scriptblock]$ModuleWideLinePrefix` - default value for **Write-SimpleTextLog**'s `-LinePrefix` parameter\n\n`[string]$ModuleWideSeparator` - default value for **Write-SimpleTextLog**'s `-Separator` parameter\n\n## Loading variables from an external source\nAll module-wide variables can be redefined with a `Config.ps1` file, located in the module's root folder. Just put variable definitions in there as you would do with any other PowerShell script. You may find an example of a config file `Config-Example.ps1` in the module's root folder.\n\n## RELATED LINKS\nYou might want to take a look at other logging approaches for PowerShell:\n* [log4ps](https://github.com/gaelcolas/log4ps)\n* [Logging](https://github.com/EsOsO/Logging/)\n* [OSCCPSLogging](https://github.com/kimoppalfens/OSCCPSLogging)\n* [PowerShellLoggingModule](https://github.com/dlwyatt/PowerShellLoggingModule/)\n* [PSLogging](https://github.com/9to5IT/PSLogging)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverscom%2FSimpleTextLogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverscom%2FSimpleTextLogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverscom%2FSimpleTextLogger/lists"}