Skip to content

Format, include, exclude, customize the headers and generate log #654

@Strada-EricFr

Description

@Strada-EricFr

Hi,
maybe I didn't search well for the info, but is is possible to:

  • set a specific format for the log genarted line (destiantion to logfile, ...) as on the screen only the message is displayed when as with this :
    Set-PSFLoggingProvider -Name console -Enabled $true -Style '%Message%'
    Write-PSFMessage -Message 'Some text'

it displays : Some text

So is it possible to have the same when the provider is to a logfile ?
Can we set for example date, and messages or message only ?

regards,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions