< Back

Set-P1LogLevel

Sat Jan 18, 2020 7:03 pm

NAME Set-P1LogLevel



SYNOPSIS

Set the log level of PlannerOne





SYNTAX

Set-P1LogLevel [-Tenant] <String> [-Level] <String> [-Restart] [-NoPersist] [<CommonParameters>]





DESCRIPTION

Set the log level of PlannerOne service and PlannerOne Web.

Standard level are Info and Debug.

PlannerOne Web and Service must be restarted to take the new option into account.

PlannerOne Web and Service will be restarted if option -Restart is set.

Configuration is persisted and reapplied after a switch version.

Use -NoPersist to change only the current installed version.

The default value is Info.

The following levels are defined in order of increasing priority:

- ALL

- DEBUG

- INFO

- WARN

- ERROR

- FATAL

- OFF

Current log level can be obtain with Get-P1LogLevel.





PARAMETERS

-Tenant <String>

The target tenant.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Level <String>

The log level to set.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Restart [<SwitchParameter>]

Restart the PlannerOne Web Application and the PlannerOne Service after the new log level has been set.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-NoPersist [<SwitchParameter>]

Do not persist the configuration for next upgrade.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Set the tenant PROD to Debug and restart



Set-P1LogLevel -Tenant PROD -Level DEBUG -Restart











RELATED LINKS