Write-BoxstarterMessage

SYNOPSIS

Writes a message to the console and the log

SYNTAX

Write-BoxstarterMessage [-message <String>] -nologo [-Color <ConsoleColor>
<CommonParameters>

DESCRIPTION

Formats the message in green. This message is also logged to the
Boxstarter log file with a timestamp.

PARAMETER

Message

The string to be logged

NoLogo

If ommited, the message will be preceeded with "Boxstarter: "

Color

Specifies a foreground color to use for the message. Green is the
default.

EXAMPLE

code:powershell}
Write-BoxstarterMessage "I am logging a message."
[code:powershell}
This creates the following console output:
Boxstarter: I am Logging a Message

This will appear in the log:
[2013-02-11T00:59:44.9768457-08:00
Boxstarter: I am Logging a Message

NOTES

If the SuppressLogging setting of the $Boxstarter variable is true,
logging mesages will be suppresed and not sent to the console or the
log.

LINK

about boxstarter logging

Last edited Aug 4, 2013 at 4:19 PM by mwrock, version 2