slf4d-dlog 1.0.0

DLog provider implementation for SLF4D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

SLF4D-DLog

An SLF4D provider for the DLog logging library.

Getting Started

The following snippet shows all that's needed to start logging with the DLog provider for SLF4D:

import slf4d;
import slf4d_dlog;

auto dlogProvider = new shared DLogProvider();
configureLoggingProvider(dlogProvider);

auto log = getLogger();
log.info("This message will be handled by DLog.");

You can customize DLog's behavior by providing a custom Logger or MessageTransform when constructing the DLogProvider:

auto customizedProvider = new shared DLogProvider(myCustomLogger);
auto otherProvider = new shared DLogProvider(myCustomMessageTransform);

Thread-Safety

Because DLog is designed for single-threaded use only, this provider synchronizes access to the underlying DLog logger such that only one thread may access it at a time.

Authors:
  • Andrew Lalis
Dependencies:
slf4d, dlog
Versions:
1.0.0 2023-Mar-19
0.0.1 2023-Mar-02
~main 2023-Mar-19
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total

Score:
0.0
Short URL:
slf4d-dlog.dub.pm