Getting started - PoShLog/PoShLog GitHub Wiki

These instructions will get you a copy of PoShLog up and running.

Prerequisites

PowerShell

Windows

Windows 10 ships with PowerShell version 5.1. To open it, press Windows Key+R, type powershell and hit Enter. If you are fine with this version, you can skip to installation step.

I recommend using latest version, PowerShell 7. I assume you have .NET Core SDK installed, if not, follow this link, click Download .NET Core SDK and when it's downloaded, install it. It features lots of useful commands, especially if you are .NET developer. If you have .NET Core SDK installed, you can run(either from cmd or powershell):

dotnet tool install --global powershell
pwsh

This will install latest powershell and start new session.

Alternatively you can follow official microsoft instructions.

Linux

Follow these instructions to install PowerShell on linux.

macOS

Follow these instructions to install PowerShell on macOS.

Installation PowerShell Gallery

Stable psgallery

To install PoShLog, run following snippet from PowerShell:

Install-Module -Name PoShLog

Congratulations, you have successfully installed PoShLog logging module 🚀

Preview psgallery

In case you would like to install non stable preview version, run following(Requires PowerShellGet 2.0+. If you are having trouble updating PowerShellGet, check this post.):

Install-Module -Name PoShLog -AllowPrerelease

Continue to Usage

⚠️ **GitHub.com Fallback** ⚠️