JvmBridge.Logging 26.10.23.4023

dotnet add package JvmBridge.Logging --version 26.10.23.4023
                    
NuGet\Install-Package JvmBridge.Logging -Version 26.10.23.4023
                    
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="JvmBridge.Logging" Version="26.10.23.4023" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JvmBridge.Logging" Version="26.10.23.4023" />
                    
Directory.Packages.props
<PackageReference Include="JvmBridge.Logging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JvmBridge.Logging --version 26.10.23.4023
                    
#r "nuget: JvmBridge.Logging, 26.10.23.4023"
                    
#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.
#:package JvmBridge.Logging@26.10.23.4023
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JvmBridge.Logging&version=26.10.23.4023
                    
Install as a Cake Addin
#tool nuget:?package=JvmBridge.Logging&version=26.10.23.4023
                    
Install as a Cake Tool

JvmBridge.Logging

Microsoft.Extensions.Logging adapters for JvmBridge agents.

  • new AgentLoggerProvider(context) is an ILoggerProvider. Its loggers write to the agent's log, so code that takes an ILogger can run inside an agent. A line is dropped when it is below context.LogLevel (-agentpath:...=log=debug), and the default sink writes it to standard error prefixed with the agent's name.
  • AgentLogging.Redirect(logger) sends everything JvmBridge logs, including failures that the runtime contained, to an ILogger instead of standard error. It replaces AgentLog.Sink; pass null to restore the default.
public sealed class MyAgent : JavaAgent
{
    public override void Configure(AgentContext context)
    {
        using AgentLoggerProvider provider = new(context);
        ILogger logger = provider.CreateLogger("MyAgent");
        logger.LogInformation("configured with {Options}", context.Options);
    }
}

Agent log levels map to LogLevel as Trace, Debug, Information, Warning, Error (Critical logs as Error), and None drops everything.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.10.23.4023 6 10/23/2026
26.10.23.3501 27 10/23/2026
26.10.23.2995 34 10/23/2026
26.10.23.2515 43 10/23/2026
26.10.23.2374 39 10/23/2026
26.10.22.7463 44 10/22/2026
26.10.22.5110 41 10/22/2026
26.10.22.4562 45 10/22/2026
26.10.22.4199 40 10/22/2026
26.10.22.3403 36 10/22/2026
26.10.22.3284 50 10/22/2026
26.10.22.2987 41 10/22/2026

- feat(samples): ✨ used an invoker, conditions and target checks in the legacy agent (8cdc466)
- feat(testing): ✨ pinned Maven artifacts, patched whole jars and link-checked helpers (4b7219c)
- feat(patching): ✨ checked that helpers declare what patches call in them (b38d61f)
- feat(patching): ✨ applied patches on conditions over a method's code (e8beff2)
- feat(patching): ✨ added getters, setters and invokers for private members (8a0ab3c)