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
<PackageReference Include="JvmBridge.Logging" Version="26.10.23.4023" />
<PackageVersion Include="JvmBridge.Logging" Version="26.10.23.4023" />
<PackageReference Include="JvmBridge.Logging" />
paket add JvmBridge.Logging --version 26.10.23.4023
#r "nuget: JvmBridge.Logging, 26.10.23.4023"
#:package JvmBridge.Logging@26.10.23.4023
#addin nuget:?package=JvmBridge.Logging&version=26.10.23.4023
#tool nuget:?package=JvmBridge.Logging&version=26.10.23.4023
JvmBridge.Logging
Microsoft.Extensions.Logging adapters for JvmBridge agents.
new AgentLoggerProvider(context)is anILoggerProvider. Its loggers write to the agent's log, so code that takes anILoggercan run inside an agent. A line is dropped when it is belowcontext.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 anILoggerinstead of standard error. It replacesAgentLog.Sink; passnullto 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 | Versions 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. |
-
net10.0
- JvmBridge (>= 26.10.23.4023)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
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)