WriteToLogs

1.0.19

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
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
Show more

Installation Options

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

Install-Module -Name WriteToLogs -RequiredVersion 1.0.19

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name WriteToLogs -Version 1.0.19

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

Owners

Copyright

(c) 2016 prestopa. All rights reserved.

Package Details

Author(s)

  • prestopa

Tags

Write Logs

Functions

Write-ToConsoleAndLog Write-WithTime Write-ToLogOnly

Dependencies

This module has no dependencies.

Release Notes

Removed the AzureAutomationNotSupported tag

FileList

Version History

Version Downloads Last updated
1.1.1 638 1/22/2019
1.0.22 115 9/15/2018
1.0.21 833 10/16/2016
1.0.20 18 10/16/2016
1.0.19 (current version) 94 7/11/2016
1.0.18 20 7/11/2016
1.0.17 21 7/11/2016
1.0.16 20 7/11/2016
1.0.15 20 7/11/2016
1.0.14 20 7/11/2016
1.0.13 80 4/20/2016
1.0.12 24 4/19/2016
1.0.11 25 4/18/2016
1.0.10 26 4/14/2016
1.0.9 20 4/14/2016
1.0.8 20 4/14/2016
1.0.7 19 4/14/2016
1.0.6 46 2/27/2016
1.0.5 18 2/27/2016
1.0.4 17 2/27/2016
1.0.3 18 2/27/2016
1.0.2 17 2/27/2016
1.0.1 167 6/17/2015
1.0 25 6/17/2015
Show more