Skip to content

Commit a82c56b

Browse files
authored
Simple typo / formatting changes. (#2)
* Simple typo / formatting changes. * Correcting badge references to PowershellGroup/Write-Log-Module instead of captainqwerty/Write-Log
1 parent 39d6f90 commit a82c56b

File tree

1 file changed

+40
-28
lines changed

1 file changed

+40
-28
lines changed

README.md

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<p align="center">
1515
A simple project to easily add a log to your projects
1616
<br />
17-
<a href="https://github.com/captainqwerty/Write-Log/releases">Releases</a> -
18-
<a href="https://github.com/captainqwerty/Write-Log/issues">Report Bug</a>
17+
<a href="https://github.com/PowershellGroup/Write-Log-Module/releases">Releases</a> -
18+
<a href="https://github.com/PowershellGroup/Write-Log-Module/issues">Report Bug</a>
1919
</p>
2020
</div>
2121

@@ -26,11 +26,11 @@ This project was to just offer people a easy way to quickly add the ability to o
2626

2727
### Class Version
2828

29-
The class Version is the preffered version however this version is limited to PowerShell Version 5.0 and greater and utilises the *Using* statement.
29+
The class Version is the preferred version however this version is limited to PowerShell Version 5.0 and greater and utilizes the *Using* statement.
3030

3131
### Module Version
3232

33-
The Module Version is available for those prefering to use *Import-Module* and those using older versions of PowerShell as the Class version will not work on PowerShell versions prior to 5.0.
33+
The Module Version is available for those preferring to use *Import-Module* and those using older versions of PowerShell as the Class version will not work on PowerShell versions prior to 5.0.
3434

3535
<p align="right">(<a href="#top">back to top</a>)</p>
3636

@@ -43,36 +43,42 @@ To get a local copy up and running follow these simple example steps.
4343
### Prerequisites
4444

4545
This is an example of how to list things you need to use the software and how to install them.
46+
4647
* PowerShell version 2.0 or greater - Module Version.
4748
* PowerShell version 5.0 or greater - Either version.
4849

4950
### Installation of Class Version
5051

51-
1. Download the <a href="https://github.com/captainqwerty/Write-Log/release">latest release</a>.
52+
1. Download the <a href="https://github.com/PowershellGroup/Write-Log-Module/release">latest release</a>.
5253
2. Extract the zipped folder.
5354
3. Place the "Write-Log" folder in your project's folder or in a location the script can access under the context it will be ran.
54-
4. Add the Using satement pointing to the Write-Log-Class.psm1 file, please note using statements must be the very first lines of your script. In this example the Write-Log folder containing the file is in the root folder with the script calling it.
55+
4. Add the Using statement pointing to the Write-Log-Class.psm1 file, please note using statements must be the very first lines of your script. In this example the Write-Log folder containing the file is in the root folder with the script calling it.
56+
5557
```ps1
5658
using module ".\Write-Log\Write-Log-Class.psm1"
5759
```
58-
4. See <a href="#usage-of-the-class-version">Class Version Usage</a> section for examples on how to configure the log location and add enteries.
60+
61+
1. See <a href="#usage-of-the-class-version">Class Version Usage</a> section for examples on how to configure the log location and add entries.
5962

6063
### Installation of Module Version
6164

62-
1. Download the <a href="https://github.com/captainqwerty/Write-Log/releases">latest release</a>.
65+
1. Download the <a href="https://github.com/PowershellGroup/Write-Log-Module/releases">latest release</a>.
6366
2. Extra the zipped folder.
6467
3. Ensure the Write-log.psm1 remains in a folder called "Write-Log" and place the Write-Log folder in your project's folder or in a location the script can access under the context it will be ran.
65-
4. Import the Module. In this example the Write-Log folder is in the root of the project folder.
68+
4. Import the Module. In this example the Write-Log folder is in the root of the project folder.
69+
6670
```ps1
67-
$module = "$psscriptroot\Write-Log"
71+
$module = "$PSScriptRoot\Write-Log"
6872
if(!(test-path $module)){
6973
write-host "$module not found" -ForegroundColor Red
7074
exit
7175
}
7276
Import-Module $module
7377
```
74-
4. See <a href="#usage-of-the-module-version">Module Version Usage</a> section for examples on how to configure the log location and add enteries.
75-
5. Add the Remove-Module line to the bottom of your script.
78+
79+
1. See <a href="#usage-of-the-module-version">Module Version Usage</a> section for examples on how to configure the log location and add entries.
80+
2. Add the Remove-Module line to the bottom of your script.
81+
7682
```ps1
7783
Remove-Module Write-Log
7884
```
@@ -81,17 +87,19 @@ Remove-Module Write-Log
8187

8288
<!-- USAGE EXAMPLES -->
8389
## Usage of the Class Version
90+
8491
```ps1
8592
using module ".\Class\Write-Log\Write-Log-Class.psm1"
8693
8794
$Log = [WriteLog]::New("C:\Example\mylog.log")
8895
89-
$Log.AddInfo("Something occured that was wroth making an info log about")
96+
$Log.AddInfo("Something occurred that was worth making an info log about")
9097
$Log.AddError("There was a huge error!")
91-
$Log.AddWarning("Oh dear I should really warn you about this!")
98+
$Log.AddWarning("Oh dear, I should really warn you about this!")
9299
$Log.AddEntry("Testing","Test Severity") #This method is hidden but can be used for custom severities
93100
```
94-
The below example shows having mutliple Write-Log objects to store different types or log enteries in different logs.
101+
102+
The below example shows having multiple Write-Log objects to store different types or log entries in different logs.
95103

96104
```ps1
97105
using module ".\Class\Write-Log\Write-Log-Class.psm1"
@@ -100,14 +108,15 @@ $InfoLog = [WriteLog]::New("C:\Example\Info.log")
100108
$ErrorLog = [WriteLog]::New("C:\Example\Errors.log")
101109
$WarningLog = [WriteLog]::New("C:\Example\Warning.log")
102110
103-
$InfoLog.AddInfo("Something occured that was wroth making an info log about")
111+
$InfoLog.AddInfo("Something occurred that was worth making an info log about")
104112
$ErrorLog.AddError("There was a huge error!")
105-
$WarningLog.AddWarning("Oh dear I should really warn you about this!")
113+
$WarningLog.AddWarning("Oh dear, I should really warn you about this!")
106114
```
107115

108116
## Usage of the Module version
117+
109118
```ps1
110-
$module = "$psscriptroot\Module\Write-Log"
119+
$module = "$PSScriptRoot\Module\Write-Log"
111120
if(!(test-path $module)){
112121
write-host "$module not found" -ForegroundColor Red
113122
exit
@@ -122,9 +131,11 @@ write-log "This is an example Warning" -severity "Warning" -logLocation $logLoca
122131
123132
Remove-Module Write-Log
124133
```
125-
Below is an example of having seperate logs for Info, Error and Warning enteries.
134+
135+
Below is an example of having separate logs for Info, Error and Warning entries.
136+
126137
```ps1
127-
$module = "$psscriptroot\Module\Write-Log"
138+
$module = "$PSScriptRoot\Module\Write-Log"
128139
if(!(test-path $module)){
129140
write-host "$module not found" -ForegroundColor Red
130141
exit
@@ -141,6 +152,7 @@ write-log "This is an example Warning" -severity "Warning" -logLocation $Warning
141152
142153
Remove-Module Write-Log
143154
```
155+
144156
<p align="right">(<a href="#top">back to top</a>)</p>
145157

146158
<!-- CONTRIBUTING -->
@@ -168,13 +180,13 @@ Don't forget to give the project a star! Thanks again!
168180

169181
<!-- MARKDOWN LINKS & IMAGES -->
170182
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
171-
[contributors-shield]: https://img.shields.io/github/contributors/captainqwerty/Write-Log.svg?style=for-the-badge
172-
[contributors-url]: https://github.com/captainqwerty/Write-Log/graphs/contributors
173-
[forks-shield]: https://img.shields.io/github/forks/captainqwerty/Write-Log.svg?style=for-the-badge
174-
[forks-url]: https://github.com/captainqwerty/Write-Log/network/members
175-
[stars-shield]: https://img.shields.io/github/stars/captainqwerty/Write-Log.svg?style=for-the-badge
176-
[stars-url]: https://github.com/captainqwerty/Write-Log/stargazers
177-
[issues-shield]: https://img.shields.io/github/issues/captainqwerty/Write-Log.svg?style=for-the-badge
178-
[issues-url]: https://github.com/captainqwerty/Write-Log/issues
183+
[contributors-shield]: https://img.shields.io/github/contributors/PowershellGroup/Write-Log-Module.svg?style=for-the-badge
184+
[contributors-url]: https://github.com/PowershellGroup/Write-Log-Module/graphs/contributors
185+
[forks-shield]: https://img.shields.io/github/forks/PowershellGroup/Write-Log-Module.svg?style=for-the-badge
186+
[forks-url]: https://github.com/PowershellGroup/Write-Log-Module/network/members
187+
[stars-shield]: https://img.shields.io/github/stars/PowershellGroup/Write-Log-Module.svg?style=for-the-badge
188+
[stars-url]: https://github.com/PowershellGroup/Write-Log-Module/stargazers
189+
[issues-shield]: https://img.shields.io/github/issues/PowershellGroup/Write-Log-Module.svg?style=for-the-badge
190+
[issues-url]: https://github.com/PowershellGroup/Write-Log-Module/issues
179191
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
180192
[linkedin-url]: https://www.linkedin.com/in/antonybragg/

0 commit comments

Comments
 (0)