PS C:\DSCv3> dsc -l debug resource get -r Microsoft/OSInfo
2023-11-01T17:18:53.142033Z DEBUG dsc_lib::discovery::command_discovery: Found Microsoft/OSInfo in C:\DSCv3\bin\debug\osinfo.dsc.resource.json
at C:\DSCv3\dsc_lib\src\discovery\command_discovery.rs:86
2023-11-01T17:18:53.142987Z DEBUG dsc::resource_command: resource.type_name - Microsoft/OSInfo implemented_as - Command
at src\resource_command.rs:27
2023-11-01T17:18:53.143721Z INFO dsc_lib::dscresources::command_resource: Invoking get Microsoft/OSInfo using osinfo
at C:\DSCv3\dsc_lib\src\dscresources\command_resource.rs:50
2023-11-01T17:18:53.144443Z DEBUG dsc_lib::dscresources::command_resource: Invoking command osinfo with args None
at C:\DSCv3\dsc_lib\src\dscresources\command_resource.rs:412
actualState:
$id: https://developer.microsoft.com/json-schemas/dsc/os_info/20230303/Microsoft.Dsc.OS_Info.schema.json
family: Windows
version: 10.0.22631
edition: Windows 11 Enterprise
bitness: '64'
PR Summary
This PR adds
--logging-level
/-l
arg that specifies the level of tracing messages printed to stderr.A value from this list will also enable all above levels; for example "--logging-level Debug" will enable
Error
,Warning
,Info
andDebug
.Help Example:
Usage example: