org.eclipse.equinox.log.ExtendedLogEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aspectjtools Show documentation
Show all versions of aspectjtools Show documentation
AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during
compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based
@AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step.
This library is a superset of AspectJ weaver and hence also of AspectJ runtime.
/*******************************************************************************
* Copyright (c) 2006, 2011 IBM Corporation and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
package org.eclipse.equinox.log;
import org.osgi.service.log.LogEntry;
import org.osgi.service.log.LogListener;
/**
* Extends the OSGi Log Services LogEntry
object to provide additional context information.
* Otherwise similarly accessible by registering a LogListener
object.
*
* @ThreadSafe
* @see LogListener
* @since 3.7
*/
public interface ExtendedLogEntry extends LogEntry {
/**
* Returns the logger name associated with this LogEntry
* object.
*
* @return String
containing the logger name associated with this
* LogEntry
object;null
if no logger name is
* associated with this LogEntry
object.
*/
@Override
String getLoggerName();
/**
* Returns the context associated with this LogEntry
* object.
*
* @return Object
containing the context associated with this
* LogEntry
object;null
if no context is
* associated with this LogEntry
object.
*/
Object getContext();
/**
* Returns the thread id of the logging thread associated with this LogEntry
* object.
*
* @return long
containing the thread id associated with this
* LogEntry
object.
*/
long getThreadId();
/**
* Returns the thread name of the logging thread associated with this LogEntry
* object.
*
* @return String
containing the message associated with this
* LogEntry
object.
*/
String getThreadName();
/**
* Returns the log sequence number associated with this LogEntry
* object.
*
* @return long
containing the sequence number associated with this
* LogEntry
object.
*/
long getSequenceNumber();
}