{"id":20982548,"url":"https://github.com/jackfoxy/pslogger","last_synced_at":"2025-08-04T06:33:10.287Z","repository":{"id":24373923,"uuid":"101332482","full_name":"jackfoxy/PSlogger","owner":"jackfoxy","description":"F# Azure logger using table storage","archived":false,"fork":false,"pushed_at":"2022-12-08T21:06:47.000Z","size":385,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T05:20:35.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackfoxy.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}},"created_at":"2017-08-24T19:52:20.000Z","updated_at":"2022-12-08T21:06:48.000Z","dependencies_parsed_at":"2023-01-14T00:51:28.053Z","dependency_job_id":null,"html_url":"https://github.com/jackfoxy/PSlogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jackfoxy/PSlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfoxy%2FPSlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfoxy%2FPSlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfoxy%2FPSlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfoxy%2FPSlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackfoxy","download_url":"https://codeload.github.com/jackfoxy/PSlogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfoxy%2FPSlogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268657959,"owners_count":24285602,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"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":[],"created_at":"2024-11-19T05:45:56.053Z","updated_at":"2025-08-04T06:33:10.237Z","avatar_url":"https://github.com/jackfoxy.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSlogger\n\nThe logger is a strongly typed system for asynchronous and synchronous logging of program messages from .NET programs to an Azure Table Storage data store, \noptimized for useful log querying.\n\n\n# Logging\n\n\n\u003e The `RunTime` refers to the start time of a workflow. Logs are stored and retrieved using this `RunTime`, not the timestamp of the log message.\n\u003e Logs are stored in tables per each day.  All logs for a particular workflow are stored in the same table, regardless of how long the workflow takes. \n\n## Logging to Azure tables\nTo log to Azure tables, provide the following environment variables: \n- `\"loggingType\": \"azure\"`\n- `\"loggingConnectionString\": \"\u003cconnection string to Azure storage\u003e\"`\n\nFor local testing, log to the local Azure storage emulator:\n- Start the Azure storage emulator locally\n- Provide the environment variable: `\"loggingConnectionString\": \"UseDevelopmentStorage=true\"`\n\n## Log Levels\n- `Error`\n- `ErrorException`\n- `FatalException`\n- `Debug`\n- `Info`\n- `Warning`\n\n## Log DateTime Operators\nAll log DateTime operators are applied to the `RunTime`, i.e. the time when a workflow has begun. \n- `Between`: Retrieve logs with a `RunTime` between the `StartDate` and the `EndDate`. `EndDate` is required to use this operator.\n- `EQ`: Retrieve logs with a `RunTime` equal to the `StartDate`.\n- `LT`: Retrieve logs with a `RunTime` less than the `StartDate`.\n- `GT`: Retrieve logs with a `RunTime` greater than the `StartDate`.\n\n## Retrieving Logs\nRetrieve logs via the endpoint `{url}/logs` by providing a predicate\n\n| Parameter     | Required | Input               | Description     |\n| ------------- | ---------| ------------------- | --------------- |\n| `Customer`    | Yes      | String              | Customer for which to retrieve logs                                        |\n| `Operator`    | Yes      | Log operator        | Specifies how to filter the logs over time                                 |\n| `StartDate`   | Yes      | DateTime            | The RunTime to which the `Operator` is applied                             |\n| `EndDate`     | No       | DateTime            | Required when `Operator` is `Between`                                      |\n| `ProcessName` | No       | String              | Process (eg, \"Optimizations.getFile bdaas-api\") for which to retrieve logs |\n| `LogLevels`   | No       | Array of log levels | Log levels for which to retrieve logs                                      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfoxy%2Fpslogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackfoxy%2Fpslogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfoxy%2Fpslogger/lists"}