WriteToLogs
1.0.2
A collection of fuctions to simplify logging output in a variety of formats, which includes:
a) Logging simultaneously to the console and a specified log file;
b) Logging to the console and a log file with a time-stamp index at each line;
c) Logging to the console and file with a numeric index at each line;
d) Logging output to only the specified log file.
The
a) Logging simultaneously to the console and a specified log file;
b) Logging to the console and a log file with a time-stamp index at each line;
c) Logging to the console and file with a numeric index at each line;
d) Logging output to only the specified log file.
The
A collection of fuctions to simplify logging output in a variety of formats, which includes:
a) Logging simultaneously to the console and a specified log file;
b) Logging to the console and a log file with a time-stamp index at each line;
c) Logging to the console and file with a numeric index at each line;
d) Logging output to only the specified log file.
The Write-ToConsoleAndLog function displays the specified content on both the PowerShell console and an included log file.
The Write-WithTime function displays the specified output on both the PowerShell console and an included log file, with a time index at each line of output.
The Write-WithIndex function displays the specified content on both the PowerShell console and an included log file, with a sequential numeric index at each line of output.
A typical scenario in which this can be used would be to iterate through a set of checks for a QA script which validates the correct settings for a configuration.
The Write-ToLogOnly function writes the specified content only to the inlcuded file.
The function here is similar to using the native ...| Out-File -FilePath <path> syntax
Show more
a) Logging simultaneously to the console and a specified log file;
b) Logging to the console and a log file with a time-stamp index at each line;
c) Logging to the console and file with a numeric index at each line;
d) Logging output to only the specified log file.
The Write-ToConsoleAndLog function displays the specified content on both the PowerShell console and an included log file.
The Write-WithTime function displays the specified output on both the PowerShell console and an included log file, with a time index at each line of output.
The Write-WithIndex function displays the specified content on both the PowerShell console and an included log file, with a sequential numeric index at each line of output.
A typical scenario in which this can be used would be to iterate through a set of checks for a QA script which validates the correct settings for a configuration.
The Write-ToLogOnly function writes the specified content only to the inlcuded file.
The function here is similar to using the native ...| Out-File -FilePath <path> syntax
Installation Options
Owners
Copyright
(c) 2015 Preston K. Parsard. All rights reserved.
Package Details
Author(s)
- Preston K. Parsard
Tags
Write Logs AzureAutomationNotSupported
Dependencies
This module has no dependencies.
Release Notes
Added MIT License URI
Added help URI
Added AzureAutomationNotSupported tag
Updated header in psm1 file with MIT license notification statement
FileList
- WriteToLogs.nuspec
- WriteToLogs.psd1
- WriteToLogs.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
1.1.1 | 846 | 1/22/2019 |
1.0.22 | 116 | 9/15/2018 |
1.0.21 | 834 | 10/16/2016 |
1.0.20 | 19 | 10/16/2016 |
1.0.19 | 95 | 7/11/2016 |
1.0.18 | 21 | 7/11/2016 |
1.0.17 | 22 | 7/11/2016 |
1.0.16 | 21 | 7/11/2016 |
1.0.15 | 21 | 7/11/2016 |
1.0.14 | 21 | 7/11/2016 |
1.0.13 | 81 | 4/20/2016 |
1.0.12 | 25 | 4/19/2016 |
1.0.11 | 26 | 4/18/2016 |
1.0.10 | 27 | 4/14/2016 |
1.0.9 | 21 | 4/14/2016 |
1.0.8 | 21 | 4/14/2016 |
1.0.7 | 20 | 4/14/2016 |
1.0.6 | 47 | 2/27/2016 |
1.0.5 | 19 | 2/27/2016 |
1.0.4 | 18 | 2/27/2016 |
1.0.3 | 19 | 2/27/2016 |
1.0.2 (current version) | 18 | 2/27/2016 |
1.0.1 | 168 | 6/17/2015 |
1.0 | 26 | 6/17/2015 |