Search this site
Embedded Files
JNIWrapper Support
  • Home
  • Documentation
    • Frequently Asked Questions
      • Gathering Information about Licence Errors
      • General
      • Technical
      • WinPack
    • Installation Instructions
    • Javadoc
    • Logging in JNIWrapper
      • Enabling Log4J in JNIWrapper
    • Mapping Native Types to JNIWrapper Classes
    • Mapping Windows Data Types
    • Programmer's Guide
    • Supported Platforms
    • Troubleshooting
    • Tutorial
  • Samples
    • JNIWrapper Samples
      • Basic JNIWrapper Sample
      • Bit Field Sample
      • Bit Structure
      • Callback Sample
      • Callback with Array Sample
      • Callback with Fill External Array Sample
      • Complex Array Sample
      • External String Pointer Sample
      • Function Call Sample
      • Key Value Structure
      • Linked Structure
      • Linked Structure Sample
      • Modifying the ACLs of an Object using JNIWrapper and WinPack
      • Primitive Array Sample
      • Resizing Pointer Sample
      • Sample Structure
      • String Array Sample
      • Structure Sample
      • Union Sample
      • Union Structure
      • Variable Sample
    • WinPack Samples
      • Access Services Remote Computer
      • Active Directory API Sample
      • Buzzer
      • Call Window Proc Sample
      • CBT Hook Sample
      • Check Admin Rights Sample
      • Choose Color Dialog Sample
      • Clipboard Viewer Sample
      • Custom Shape Window Sample
      • DDE Client Sample
      • DDE Service Sample
      • Enum Printers Sample
      • Enum Processes Sample
      • Enum Token Groups
      • Event Log Sample
      • File System Sample
      • File System Watcher Sample
      • Get Application Windows Sample
      • Get Computer Name Example
      • Hook Sample
      • Idle Tracker Sample
      • Java Taskbar Caption Sample
      • Journal Hook Sample
      • Low Level Keyboard Hook Sample
      • Low Level Mouse Hook Sample
      • Mixer Helper
      • Open/Save File Dialog Sample
      • Raw Keyboard Input Sample
      • Redirect STD Streams Example
      • Registry Key Enum Values Sample
      • Registry Key Set Values Sample
      • Sample Tray App
      • Select Folder Dialog Sample
      • ShellExecuteExExample
      • Win Event Hook Sample
      • Win Http Sample
      • Wnd Sample
      • WNetAddConnection2Sample
  • Release Notes
    • JNIWrapper 1.0 Release Notes
    • JNIWrapper 1.1 Release Notes
    • JNIWrapper 1.2 Release Notes
    • JNIWrapper 1.3 Release Notes
    • JNIWrapper 2.0 for Windows Release Notes
    • JNIWrapper 2.1. for Windows Release Notes
    • JNIWrapper 2.2 for WIndows Release Notes
    • JNIWrapper 2.3 for WIndows Release Notes
    • JNIWrapper 2.4 for Windows
    • JNIWrapper 2.4.1 for WIndows Release Notes
    • JNIWrapper 2.5 Beta for Windows Release Notes
    • JNIWrapper 2.5 for WIndows Release Notes
    • JNIWrapper 2.6 for Windows Release Notes
    • JNIWrapper 2.7 for Windows Release Notes
    • JNIWrapper 2.7.1 for Windows Release Notes
    • JNIWrapper 2.8 for Windows Release Notes
    • JNIWrapper 2.8.5 for Windows Release Notes
    • JNIWrapper 2.9 for Windows Release Notes
    • JNIWrapper 2.9.5 for Windows Release Notes
    • JNIWrapper 3.0 Release Notes
    • JNIWrapper 3.1 Release Notes
    • JNIWrapper 3.10 Release Notes
    • JNIWrapper 3.11 Release Notes
    • JNIWrapper 3.12 Release Notes
    • JNIWrapper 3.2 Release Notes
    • JNIWrapper 3.3 Release Notes
    • JNIWrapper 3.4 Release Notes
    • JNIWrapper 3.5 Release Notes
    • JNIWrapper 3.6 Release Notes
    • JNIWrapper 3.6.1 Release Notes
    • JNIWrapper 3.7 Release Notes
    • JNIWrapper 3.7.1 Release Notes
    • JNIWrapper 3.7.2 Release Notes
    • JNIWrapper 3.7.3 Release Notes
    • JNIWrapper 3.8 Release Notes
    • JNIWrapper 3.8.1 Release Notes
    • JNIWrapper 3.8.2 Release Notes
    • JNIWrapper 3.8.3 Release Notes
    • JNIWrapper 3.8.4 Release Notes
    • JNIWrapper 3.9 Release Notes
    • JNIWrapper for IBM AIX Release Notes
    • JNIWrapper for Linux 1.0 Release Notes
    • JNIWrapper for Solaris UltraSPARC
    • JNIWrapper for Windows & Linux version 1.4 Release Notes
    • JNIWrapper for Windows version 1.3.1 Release Notes
    • JNIWrapper 3.13 Release Notes
JNIWrapper Support
  • Home
  • Documentation
    • Frequently Asked Questions
      • Gathering Information about Licence Errors
      • General
      • Technical
      • WinPack
    • Installation Instructions
    • Javadoc
    • Logging in JNIWrapper
      • Enabling Log4J in JNIWrapper
    • Mapping Native Types to JNIWrapper Classes
    • Mapping Windows Data Types
    • Programmer's Guide
    • Supported Platforms
    • Troubleshooting
    • Tutorial
  • Samples
    • JNIWrapper Samples
      • Basic JNIWrapper Sample
      • Bit Field Sample
      • Bit Structure
      • Callback Sample
      • Callback with Array Sample
      • Callback with Fill External Array Sample
      • Complex Array Sample
      • External String Pointer Sample
      • Function Call Sample
      • Key Value Structure
      • Linked Structure
      • Linked Structure Sample
      • Modifying the ACLs of an Object using JNIWrapper and WinPack
      • Primitive Array Sample
      • Resizing Pointer Sample
      • Sample Structure
      • String Array Sample
      • Structure Sample
      • Union Sample
      • Union Structure
      • Variable Sample
    • WinPack Samples
      • Access Services Remote Computer
      • Active Directory API Sample
      • Buzzer
      • Call Window Proc Sample
      • CBT Hook Sample
      • Check Admin Rights Sample
      • Choose Color Dialog Sample
      • Clipboard Viewer Sample
      • Custom Shape Window Sample
      • DDE Client Sample
      • DDE Service Sample
      • Enum Printers Sample
      • Enum Processes Sample
      • Enum Token Groups
      • Event Log Sample
      • File System Sample
      • File System Watcher Sample
      • Get Application Windows Sample
      • Get Computer Name Example
      • Hook Sample
      • Idle Tracker Sample
      • Java Taskbar Caption Sample
      • Journal Hook Sample
      • Low Level Keyboard Hook Sample
      • Low Level Mouse Hook Sample
      • Mixer Helper
      • Open/Save File Dialog Sample
      • Raw Keyboard Input Sample
      • Redirect STD Streams Example
      • Registry Key Enum Values Sample
      • Registry Key Set Values Sample
      • Sample Tray App
      • Select Folder Dialog Sample
      • ShellExecuteExExample
      • Win Event Hook Sample
      • Win Http Sample
      • Wnd Sample
      • WNetAddConnection2Sample
  • Release Notes
    • JNIWrapper 1.0 Release Notes
    • JNIWrapper 1.1 Release Notes
    • JNIWrapper 1.2 Release Notes
    • JNIWrapper 1.3 Release Notes
    • JNIWrapper 2.0 for Windows Release Notes
    • JNIWrapper 2.1. for Windows Release Notes
    • JNIWrapper 2.2 for WIndows Release Notes
    • JNIWrapper 2.3 for WIndows Release Notes
    • JNIWrapper 2.4 for Windows
    • JNIWrapper 2.4.1 for WIndows Release Notes
    • JNIWrapper 2.5 Beta for Windows Release Notes
    • JNIWrapper 2.5 for WIndows Release Notes
    • JNIWrapper 2.6 for Windows Release Notes
    • JNIWrapper 2.7 for Windows Release Notes
    • JNIWrapper 2.7.1 for Windows Release Notes
    • JNIWrapper 2.8 for Windows Release Notes
    • JNIWrapper 2.8.5 for Windows Release Notes
    • JNIWrapper 2.9 for Windows Release Notes
    • JNIWrapper 2.9.5 for Windows Release Notes
    • JNIWrapper 3.0 Release Notes
    • JNIWrapper 3.1 Release Notes
    • JNIWrapper 3.10 Release Notes
    • JNIWrapper 3.11 Release Notes
    • JNIWrapper 3.12 Release Notes
    • JNIWrapper 3.2 Release Notes
    • JNIWrapper 3.3 Release Notes
    • JNIWrapper 3.4 Release Notes
    • JNIWrapper 3.5 Release Notes
    • JNIWrapper 3.6 Release Notes
    • JNIWrapper 3.6.1 Release Notes
    • JNIWrapper 3.7 Release Notes
    • JNIWrapper 3.7.1 Release Notes
    • JNIWrapper 3.7.2 Release Notes
    • JNIWrapper 3.7.3 Release Notes
    • JNIWrapper 3.8 Release Notes
    • JNIWrapper 3.8.1 Release Notes
    • JNIWrapper 3.8.2 Release Notes
    • JNIWrapper 3.8.3 Release Notes
    • JNIWrapper 3.8.4 Release Notes
    • JNIWrapper 3.9 Release Notes
    • JNIWrapper for IBM AIX Release Notes
    • JNIWrapper for Linux 1.0 Release Notes
    • JNIWrapper for Solaris UltraSPARC
    • JNIWrapper for Windows & Linux version 1.4 Release Notes
    • JNIWrapper for Windows version 1.3.1 Release Notes
    • JNIWrapper 3.13 Release Notes
  • More
    • Home
    • Documentation
      • Frequently Asked Questions
        • Gathering Information about Licence Errors
        • General
        • Technical
        • WinPack
      • Installation Instructions
      • Javadoc
      • Logging in JNIWrapper
        • Enabling Log4J in JNIWrapper
      • Mapping Native Types to JNIWrapper Classes
      • Mapping Windows Data Types
      • Programmer's Guide
      • Supported Platforms
      • Troubleshooting
      • Tutorial
    • Samples
      • JNIWrapper Samples
        • Basic JNIWrapper Sample
        • Bit Field Sample
        • Bit Structure
        • Callback Sample
        • Callback with Array Sample
        • Callback with Fill External Array Sample
        • Complex Array Sample
        • External String Pointer Sample
        • Function Call Sample
        • Key Value Structure
        • Linked Structure
        • Linked Structure Sample
        • Modifying the ACLs of an Object using JNIWrapper and WinPack
        • Primitive Array Sample
        • Resizing Pointer Sample
        • Sample Structure
        • String Array Sample
        • Structure Sample
        • Union Sample
        • Union Structure
        • Variable Sample
      • WinPack Samples
        • Access Services Remote Computer
        • Active Directory API Sample
        • Buzzer
        • Call Window Proc Sample
        • CBT Hook Sample
        • Check Admin Rights Sample
        • Choose Color Dialog Sample
        • Clipboard Viewer Sample
        • Custom Shape Window Sample
        • DDE Client Sample
        • DDE Service Sample
        • Enum Printers Sample
        • Enum Processes Sample
        • Enum Token Groups
        • Event Log Sample
        • File System Sample
        • File System Watcher Sample
        • Get Application Windows Sample
        • Get Computer Name Example
        • Hook Sample
        • Idle Tracker Sample
        • Java Taskbar Caption Sample
        • Journal Hook Sample
        • Low Level Keyboard Hook Sample
        • Low Level Mouse Hook Sample
        • Mixer Helper
        • Open/Save File Dialog Sample
        • Raw Keyboard Input Sample
        • Redirect STD Streams Example
        • Registry Key Enum Values Sample
        • Registry Key Set Values Sample
        • Sample Tray App
        • Select Folder Dialog Sample
        • ShellExecuteExExample
        • Win Event Hook Sample
        • Win Http Sample
        • Wnd Sample
        • WNetAddConnection2Sample
    • Release Notes
      • JNIWrapper 1.0 Release Notes
      • JNIWrapper 1.1 Release Notes
      • JNIWrapper 1.2 Release Notes
      • JNIWrapper 1.3 Release Notes
      • JNIWrapper 2.0 for Windows Release Notes
      • JNIWrapper 2.1. for Windows Release Notes
      • JNIWrapper 2.2 for WIndows Release Notes
      • JNIWrapper 2.3 for WIndows Release Notes
      • JNIWrapper 2.4 for Windows
      • JNIWrapper 2.4.1 for WIndows Release Notes
      • JNIWrapper 2.5 Beta for Windows Release Notes
      • JNIWrapper 2.5 for WIndows Release Notes
      • JNIWrapper 2.6 for Windows Release Notes
      • JNIWrapper 2.7 for Windows Release Notes
      • JNIWrapper 2.7.1 for Windows Release Notes
      • JNIWrapper 2.8 for Windows Release Notes
      • JNIWrapper 2.8.5 for Windows Release Notes
      • JNIWrapper 2.9 for Windows Release Notes
      • JNIWrapper 2.9.5 for Windows Release Notes
      • JNIWrapper 3.0 Release Notes
      • JNIWrapper 3.1 Release Notes
      • JNIWrapper 3.10 Release Notes
      • JNIWrapper 3.11 Release Notes
      • JNIWrapper 3.12 Release Notes
      • JNIWrapper 3.2 Release Notes
      • JNIWrapper 3.3 Release Notes
      • JNIWrapper 3.4 Release Notes
      • JNIWrapper 3.5 Release Notes
      • JNIWrapper 3.6 Release Notes
      • JNIWrapper 3.6.1 Release Notes
      • JNIWrapper 3.7 Release Notes
      • JNIWrapper 3.7.1 Release Notes
      • JNIWrapper 3.7.2 Release Notes
      • JNIWrapper 3.7.3 Release Notes
      • JNIWrapper 3.8 Release Notes
      • JNIWrapper 3.8.1 Release Notes
      • JNIWrapper 3.8.2 Release Notes
      • JNIWrapper 3.8.3 Release Notes
      • JNIWrapper 3.8.4 Release Notes
      • JNIWrapper 3.9 Release Notes
      • JNIWrapper for IBM AIX Release Notes
      • JNIWrapper for Linux 1.0 Release Notes
      • JNIWrapper for Solaris UltraSPARC
      • JNIWrapper for Windows & Linux version 1.4 Release Notes
      • JNIWrapper for Windows version 1.3.1 Release Notes
      • JNIWrapper 3.13 Release Notes

Documentation ‎> Logging in JNIWrapper‎

Enabling Log4J in JNIWrapper

Starting from version 3.8, JNIWrapper comes with SLF4J Loggin Facade. SLF4J supports multiple logging frameworks. We distribute JNIWrapper library with Simple implementation, which outputs all events to System.err. Only messages of level INFO and higher are printed. This binding may be useful in the context of small applications.

To enable Log4J in JNIWrapper please do the following steps:

1. Download the archive using the following link: http://www.slf4j.org/dist/slf4j-1.6.0.zip

2. From this archive copy the slf4j-log4j12-1.6.0.jar and add it to your application class path.

3. Add the log4j.properties file to your application class path to configure Log4J.

4. Remove the slf4j-simple.jar from the application class path to disable default JNIWrapper logging. Instead, add slf4j-log4j12-1.6.0.jar and log4j-1.2.15.jar

If you want to bind with other loggers, please refer to the SLF4J User Manual.

Terms and Privacy  © 2002 – 2021 TeamDev. All rights reserved.

Report abuse
Page details
Page updated
Report abuse