WriteToLogs

1.1.1

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 output to only the specified log file.
The Write-ToConsoleAndLog function displays the specified content on both 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 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-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

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name WriteToLogs

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Preston K. Parsard

Copyright

(c) 2019 Preston K. Parsard. All rights reserved.

Owners

Tags

Write Log Windows

Functions

Write-ToConsoleAndLog Write-WithTime Write-ToLogOnly

PSEditions

Desktop

Dependencies

This module has no dependencies.

Release Notes

Updated author, company name, copyright year, powershell version info, header notes in psm1, added PSEdition_Desktop & Windows tags, updated description and added new project repo in GitHub.

Version History

Version Downloads Last updated
1.1.1 (current version) 471 1/22/2019
1.0.22 89 9/15/2018
1.0.21 825 10/16/2016
1.0.20 10 10/16/2016
1.0.19 85 7/11/2016
1.0.18 11 7/11/2016
1.0.17 11 7/11/2016
1.0.16 11 7/11/2016
1.0.15 11 7/11/2016
1.0.14 11 7/11/2016
1.0.13 71 4/20/2016
1.0.12 15 4/19/2016
1.0.11 16 4/18/2016
1.0.10 16 4/14/2016
1.0.9 12 4/14/2016
1.0.8 11 4/14/2016
1.0.7 10 4/14/2016
1.0.6 38 2/27/2016
1.0.5 10 2/27/2016
1.0.4 9 2/27/2016
1.0.3 9 2/27/2016
1.0.2 9 2/27/2016
1.0.1 157 6/17/2015
1.0 14 6/17/2015