Serilog.Enrichers.Autodesk.Revit
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Serilog.Enrichers.Autodesk.Revit --version 1.0.0
NuGet\Install-Package Serilog.Enrichers.Autodesk.Revit -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Enrichers.Autodesk.Revit" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Enrichers.Autodesk.Revit --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Enrichers.Autodesk.Revit, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Enrichers.Autodesk.Revit as a Cake Addin #addin nuget:?package=Serilog.Enrichers.Autodesk.Revit&version=1.0.0 // Install Serilog.Enrichers.Autodesk.Revit as a Cake Tool #tool nuget:?package=Serilog.Enrichers.Autodesk.Revit&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Serilog.Enrichers.Autodesk.Revit
The Autodesk Revit enrichers for Serilog.
Getting started
Install the Serilog.Enrichers.Autodesk.Revit package from NuGet:
Install-Package Serilog.Enrichers.Autodesk.Revit
Then, apply the enricher to you LoggerConfiguration
:
// IExternalCommand.Execute
public Result Execute(ExternalCommandData commandData,
out string message,
ElementSet elements) {
UIApplication uiApplication = commandData.Application;
var log = new LoggerConfiguration()
.Enrich.WithRevitVersion(uiApplication)
// other enrichers..
.CreateLogger();
}
// IExternalApplication.Execute
public Result OnStartup(UIControlledApplication application) {
var log = new LoggerConfiguration()
.Enrich.WithRevitVersion(application)
// other enrichers...
.CreateLogger();
}
Included enrichers
The package includes:
WithRevitVersion()
- addsApplication.VersionNumber
orControlledApplication.VersionNumber
WithRevitBuild()
- addsApplication.VersionBuild
orControlledApplication.VersionBuild
WithRevitUserName()
- addsApplication.Username
orControlledApplication.Username
WithRevitLanguage()
- addsApplication.Language
orControlledApplication.Language
WithRevitDocumentTitle()
- addsDocument.Title
WithRevitDocumentPathName()
- addsDocument.PathName
WithRevitDocumentModelPath()
- addsDocument.GetCloudModelPath()
ifDocument.IsModelInCloud
istrue
orDocument.GetWorksharingCentralModelPath()
ifDocument.IsWorkshared
istrue
WithRevitAddinId()
- addsApplication.ActiveAddinId
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- Serilog (>= 2.10.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.