Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When available, add the username to the request log output #1162

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

Badgerati
Copy link
Owner

Description of the Change

When Request logging is enabled, the "user" field has always been hardcoded to "-" for a very long time. This now sets that field to a username if available.

By default it will look in $WebEvent.Auth.User for the Username property, but this property can be customised using -UsernameProperty parameter on Enable-PodeRequestLogging.

Related Issue

Resolves #1130

@Badgerati Badgerati added this to the 2.9.0 milestone Oct 8, 2023
@Badgerati Badgerati self-assigned this Oct 8, 2023
@Badgerati Badgerati merged commit 27ca58e into develop Oct 8, 2023
7 checks passed
@Badgerati Badgerati deleted the Issue-1130 branch October 8, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request logging 'User' attribute is always set to '-'; cannot be customized
1 participant