Blame liblttng-ust-java-agent/java/lttng-ust-agent-log4j/org/lttng/ust/agent/log4j/LttngLog4jApi.java
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Copyright (C) 2016 - EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is free software; you can redistribute it and/or modify it
|
|
Packit |
c04fcb |
* under the terms of the GNU Lesser General Public License, version 2.1 only,
|
|
Packit |
c04fcb |
* as published by the Free Software Foundation.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit |
c04fcb |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
Packit |
c04fcb |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
Packit |
c04fcb |
* for more details.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
c04fcb |
* along with this library; if not, write to the Free Software Foundation,
|
|
Packit |
c04fcb |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
package org.lttng.ust.agent.log4j;
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
/**
|
|
Packit |
c04fcb |
* Virtual class containing the Java side of the LTTng-log4j JNI API methods.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* @author Alexandre Montplaisir
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
final class LttngLog4jApi {
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
private LttngLog4jApi() {}
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
static native void tracepoint(String msg,
|
|
Packit |
c04fcb |
String logger_name,
|
|
Packit |
c04fcb |
String class_name,
|
|
Packit |
c04fcb |
String method_name,
|
|
Packit |
c04fcb |
String file_name,
|
|
Packit |
c04fcb |
int line_number,
|
|
Packit |
c04fcb |
long timestamp,
|
|
Packit |
c04fcb |
int loglevel,
|
|
Packit |
c04fcb |
String thread_name);
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
static native void tracepointWithContext(String msg,
|
|
Packit |
c04fcb |
String logger_name,
|
|
Packit |
c04fcb |
String class_name,
|
|
Packit |
c04fcb |
String method_name,
|
|
Packit |
c04fcb |
String file_name,
|
|
Packit |
c04fcb |
int line_number,
|
|
Packit |
c04fcb |
long timestamp,
|
|
Packit |
c04fcb |
int loglevel,
|
|
Packit |
c04fcb |
String thread_name,
|
|
Packit |
c04fcb |
byte[] contextEntries,
|
|
Packit |
c04fcb |
byte[] contextStrings);
|
|
Packit |
c04fcb |
}
|