You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current logging output for Hawk is inconsistent and lacks uniformity in tag usage. For example:
Not all output uses the Out-LogFile prompt tags.
Some logs contain redundant messages, such as repeated "Appending Data" entries for the same file.
When writing logs, log write statements differ between "Appending" or "Writing" when writing data, when we should stick to just "writing" for uniformity.
Logs for Start-HawkTenantInvestigation and Start-UserInvestigation lack proper categorization and usage of tags (e.g., [ACTION], [INFO], [INVESTIGATE]).
This inconsistency creates challenges for debugging, auditing, and maintaining a clean log history.
Proposed Solution
Use Out-LogFile Tags:
Ensure all logging output consistently uses the Out-LogFile tags ([ACTION], [INFO], [INVESTIGATE], etc.).
Standardize File Writing Logs:
Change all "Appending Data" logs to "Writing Data" when writing to a file.
Clean Up Specific Outputs:
For Start-HawkTenantInvestigation, ensure all log entries are tagged and follow the standardized format.
Remove redundant messages and ensure proper categorization of actions (e.g., writing files, retrieving data).
Apply the same cleanup and tagging principles to Start-UserInvestigation.
Technical Requirements
Update all logging operations to use the Out-LogFile function.
Review and adjust the following components:
Start-HawkTenantInvestigation
Start-UserInvestigation
Implementation Approach
Refactor existing log messages to call Out-LogFile with appropriate tags:
Use [ACTION] for steps being performed.
Use [INFO] for status updates or informational messages.
Use [INVESTIGATE] for any findings requiring review.
Identify and remove redundant log entries during batch operations (e.g., repeated "Appending Data" for the same file).
Audit all file-writing operations:
If the file is being created or overwritten, log as "Writing Data."
If appending, log as "Appending Data" only once per operation.
Acceptance Criteria
All log entries for Start-HawkTenantInvestigation and Start-UserInvestigation use Out-LogFile with appropriate tags.
Log messages for file-writing operations clearly differentiate between "Writing Data" and "Appending Data."
No redundant log entries (e.g., multiple "Appending Data" for the same file).
Output is uniform and adheres to the specified logging standards across all modules.
The text was updated successfully, but these errors were encountered:
What problem would this feature solve?
The current logging output for Hawk is inconsistent and lacks uniformity in tag usage. For example:
Out-LogFile
prompt tags.Start-HawkTenantInvestigation
andStart-UserInvestigation
lack proper categorization and usage of tags (e.g.,[ACTION]
,[INFO]
,[INVESTIGATE]
).This inconsistency creates challenges for debugging, auditing, and maintaining a clean log history.
Proposed Solution
Use
Out-LogFile
Tags:Out-LogFile
tags ([ACTION]
,[INFO]
,[INVESTIGATE]
, etc.).Standardize File Writing Logs:
Clean Up Specific Outputs:
Start-HawkTenantInvestigation
, ensure all log entries are tagged and follow the standardized format.Start-UserInvestigation
.Technical Requirements
Out-LogFile
function.Start-HawkTenantInvestigation
Start-UserInvestigation
Implementation Approach
Out-LogFile
with appropriate tags:[ACTION]
for steps being performed.[INFO]
for status updates or informational messages.[INVESTIGATE]
for any findings requiring review.Acceptance Criteria
Start-HawkTenantInvestigation
andStart-UserInvestigation
useOut-LogFile
with appropriate tags.The text was updated successfully, but these errors were encountered: