Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# PSWriteLog
# MEMZone.WriteLog

[![CI](https://github.com/MEM-Zone/MEM.Zone-PSWriteLog/actions/workflows/ci.yml/badge.svg)](https://github.com/MEM-Zone/MEM.Zone-PSWriteLog/actions/workflows/ci.yml)
[![PSGallery Version](https://img.shields.io/powershellgallery/v/PSWriteLog.svg)](https://www.powershellgallery.com/packages/PSWriteLog)
[![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/PSWriteLog.svg)](https://www.powershellgallery.com/packages/PSWriteLog)
[![PSGallery Version](https://img.shields.io/powershellgallery/v/MEMZone.WriteLog.svg)](https://www.powershellgallery.com/packages/MEMZone.WriteLog)
[![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/MEMZone.WriteLog.svg)](https://www.powershellgallery.com/packages/MEMZone.WriteLog)
[![License](https://img.shields.io/github/license/MEM-Zone/MEM.Zone-PSWriteLog.svg)](LICENSE)

Structured PowerShell logging with dual console/file output, rich text formatting, animated progress indicators, and debug-level function tracing.
Expand All @@ -21,7 +21,7 @@ Structured PowerShell logging with dual console/file output, rich text formattin
### PowerShell Gallery (recommended)

```powershell
Install-Module -Name PSWriteLog -Scope CurrentUser
Install-Module -Name MEMZone.WriteLog -Scope CurrentUser
```

### Manual
Expand All @@ -30,13 +30,13 @@ Clone the repository and import the module directly:

```powershell
git clone https://github.com/MEM-Zone/MEM.Zone-PSWriteLog.git
Import-Module ./MEM.Zone-PSWriteLog/src/PSWriteLog/PSWriteLog.psd1
Import-Module ./MEM.Zone-PSWriteLog/src/MEMZone.WriteLog/MEMZone.WriteLog.psd1
```

## Quick Start

```powershell
Import-Module PSWriteLog
Import-Module MEMZone.WriteLog

# Initialize logging
Initialize-PSWriteLog -LogName 'MyScript' -LogPath 'C:\Logs\MyScript'
Expand Down
10 changes: 5 additions & 5 deletions build/build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
.SYNOPSIS
Build, test, and publish the PSWriteLog module.
Build, test, and publish the MEMZone.WriteLog module.
.DESCRIPTION
Orchestrates the module lifecycle: static analysis, unit tests, compiled builds, and
PowerShell Gallery publishing. Supports individual or combined task execution.
Expand All @@ -14,7 +14,7 @@
API key for publishing to the PowerShell Gallery. Required for the Publish task.
Store securely and never commit to source control.
.PARAMETER OutputPath
Directory for build output. Default: ./output/PSWriteLog
Directory for build output. Default: ./output/MEMZone.WriteLog
.EXAMPLE
./build.ps1
Runs Analyze and Test tasks with default settings.
Expand All @@ -32,15 +32,15 @@ param (

[string]$NuGetApiKey,

[string]$OutputPath = (Join-Path -Path $PSScriptRoot -ChildPath '../output/PSWriteLog')
[string]$OutputPath = (Join-Path -Path $PSScriptRoot -ChildPath '../output/MEMZone.WriteLog')
)

Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

[string]$ProjectRoot = Split-Path -Path $PSScriptRoot -Parent
[string]$ModuleSourcePath = Join-Path -Path $ProjectRoot -ChildPath 'src/PSWriteLog'
[string]$ModuleName = 'PSWriteLog'
[string]$ModuleSourcePath = Join-Path -Path $ProjectRoot -ChildPath 'src/MEMZone.WriteLog'
[string]$ModuleName = 'MEMZone.WriteLog'
[string]$TestsPath = Join-Path -Path $ProjectRoot -ChildPath 'tests'

#region Task: Analyze
Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to the **PSWriteLog** module will be documented in this file.
All notable changes to the **MEMZone.WriteLog** module will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
# Script module associated with this manifest
RootModule = 'PSWriteLog.psm1'
RootModule = 'MEMZone.WriteLog.psm1'

# Version number of this module (SemVer)
ModuleVersion = '1.0.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
.SYNOPSIS
PSWriteLog - PowerShell Logging, Formatting, and Animation Module.
MEMZone.WriteLog - PowerShell Logging, Formatting, and Animation Module.
.DESCRIPTION
Provides structured logging with dual console/file output, rich text formatting
(tables, blocks, timelines, headers), animated progress indicators via background
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions tests/PSWriteLog.Tests.ps1 → tests/MEMZone.WriteLog.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#Requires -Module Pester

BeforeAll {
$ModulePath = Join-Path -Path $PSScriptRoot -ChildPath '../src/PSWriteLog/PSWriteLog.psd1'
$ModulePath = Join-Path -Path $PSScriptRoot -ChildPath '../src/MEMZone.WriteLog/MEMZone.WriteLog.psd1'
Import-Module -Name $ModulePath -Force -ErrorAction Stop
}

AfterAll {
Remove-Module -Name PSWriteLog -Force -ErrorAction SilentlyContinue
Remove-Module -Name MEMZone.WriteLog -Force -ErrorAction SilentlyContinue
}

Describe 'Module: PSWriteLog' {
Describe 'Module: MEMZone.WriteLog' {

Context 'Module Import' {

It 'Should import without errors' {
{ Import-Module -Name (Join-Path $PSScriptRoot '../src/PSWriteLog/PSWriteLog.psd1') -Force } | Should -Not -Throw
{ Import-Module -Name (Join-Path $PSScriptRoot '../src/MEMZone.WriteLog/MEMZone.WriteLog.psd1') -Force } | Should -Not -Throw
}

It 'Should be loaded' {
Get-Module -Name PSWriteLog | Should -Not -BeNullOrEmpty
Get-Module -Name MEMZone.WriteLog | Should -Not -BeNullOrEmpty
}
}

Expand Down Expand Up @@ -47,11 +47,11 @@ Describe 'Module: PSWriteLog' {
'Invoke-WithAnimation'
'Invoke-WithStatus'
) {
(Get-Command -Module PSWriteLog -Name $_ -ErrorAction SilentlyContinue) | Should -Not -BeNullOrEmpty
(Get-Command -Module MEMZone.WriteLog -Name $_ -ErrorAction SilentlyContinue) | Should -Not -BeNullOrEmpty
}

It 'Should not export unexpected functions' {
$ExportedCount = (Get-Command -Module PSWriteLog).Count
$ExportedCount = (Get-Command -Module MEMZone.WriteLog).Count
$ExportedCount | Should -Be 8
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/PSScriptAnalyzer.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#Requires -Module Pester
#Requires -Module PSScriptAnalyzer

Describe 'PSScriptAnalyzer: PSWriteLog' {
Describe 'PSScriptAnalyzer: MEMZone.WriteLog' {

BeforeAll {
$ModuleSourcePath = Join-Path -Path $PSScriptRoot -ChildPath '../src/PSWriteLog'
$ModuleSourcePath = Join-Path -Path $PSScriptRoot -ChildPath '../src/MEMZone.WriteLog'
$AnalyzerResults = Invoke-ScriptAnalyzer -Path $ModuleSourcePath -Recurse -Settings PSGallery -Severity @('Error', 'Warning')
}

Expand Down
Loading