public class EventLogTraceListener extends TraceListener
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.EventLogTraceListener
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Diagnostics.EventLog, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Diagnostics.EventLog
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.EventLogTraceListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
EventLogTraceListener() |
EventLogTraceListener(EventLog eventLog) |
EventLogTraceListener(java.lang.Object instance)
Internal constructor.
|
EventLogTraceListener(java.lang.String source) |
| Modifier and Type | Method and Description |
|---|---|
static EventLogTraceListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into EventLogTraceListener, a cast assert is made to check if types are compatible. |
void |
Close() |
EventLog |
getEventLog() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
void |
setEventLog(EventLog EventLog) |
void |
setJCOInstance(JCObject instance) |
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType severity,
int id,
NetObject... data) |
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType severity,
int id,
NetObject data) |
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType severity,
int id,
java.lang.String message) |
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType severity,
int id,
java.lang.String format,
NetObject... args) |
void |
Write(java.lang.String message) |
void |
WriteLine(java.lang.String message) |
close, Dispose, Fail, Fail, Flush, getAttributes, getFilter, getIndentLevel, getIndentSize, getIsThreadSafe, getName, getTraceOutputOptions, setFilter, setIndentLevel, setIndentSize, setName, setTraceOutputOptions, TraceEvent, TraceTransfer, Write, Write, Write, WriteLine, WriteLine, WriteLineGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public EventLogTraceListener()
throws java.lang.Throwable
java.lang.Throwablepublic EventLogTraceListener(EventLog eventLog) throws java.lang.Throwable
java.lang.Throwablepublic EventLogTraceListener(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic EventLogTraceListener(java.lang.String source)
throws java.lang.Throwable,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
NotSupportedException,
InvalidOperationException,
FormatException,
ObjectDisposedException,
SecurityException,
UnauthorizedAccessException,
IOException,
Win32Exception,
NullReferenceException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionNotSupportedExceptionInvalidOperationExceptionFormatExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWin32ExceptionNullReferenceExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionpublic static EventLogTraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into EventLogTraceListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEventLogTraceListener instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
Win32Exception,
SecurityException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NullReferenceException,
ArgumentException,
InvalidOperationException
Close in class TraceListenerjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionWin32ExceptionSecurityExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNullReferenceExceptionArgumentExceptionInvalidOperationExceptionpublic EventLog getEventLog() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TraceListenerString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TraceListenerString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TraceListenerObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TraceListenerString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class TraceListenerJCType representing the CLR Type of the instantiated Classpublic void setEventLog(EventLog EventLog) throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class TraceListenerpublic void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType severity, int id, NetObject... data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, ArrayTypeMismatchException, OutOfMemoryException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, WaitHandleCannotBeOpenedException, ArgumentNullException, Win32Exception, CultureNotFoundException, ApplicationException
TraceData in class TraceListenerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWaitHandleCannotBeOpenedExceptionArgumentNullExceptionWin32ExceptionCultureNotFoundExceptionApplicationExceptionpublic void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType severity, int id, NetObject data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, WaitHandleCannotBeOpenedException, ArgumentNullException, OutOfMemoryException, Win32Exception, CultureNotFoundException, ApplicationException
TraceData in class TraceListenerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWaitHandleCannotBeOpenedExceptionArgumentNullExceptionOutOfMemoryExceptionWin32ExceptionCultureNotFoundExceptionApplicationExceptionpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType severity, int id, java.lang.String message) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, WaitHandleCannotBeOpenedException, ArgumentNullException, OutOfMemoryException, Win32Exception, CultureNotFoundException, ApplicationException
TraceEvent in class TraceListenerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWaitHandleCannotBeOpenedExceptionArgumentNullExceptionOutOfMemoryExceptionWin32ExceptionCultureNotFoundExceptionApplicationExceptionpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType severity, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, SecurityException, UnauthorizedAccessException, IOException, WaitHandleCannotBeOpenedException, ArgumentNullException, OutOfMemoryException, Win32Exception, CultureNotFoundException, ApplicationException
TraceEvent in class TraceListenerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionObjectDisposedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWaitHandleCannotBeOpenedExceptionArgumentNullExceptionOutOfMemoryExceptionWin32ExceptionCultureNotFoundExceptionApplicationExceptionpublic void Write(java.lang.String message)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
NotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
OverflowException,
InvalidEnumArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
WaitHandleCannotBeOpenedException,
OutOfMemoryException,
Win32Exception,
ApplicationException
Write in class TraceListenerjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionOverflowExceptionInvalidEnumArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionWaitHandleCannotBeOpenedExceptionOutOfMemoryExceptionWin32ExceptionApplicationExceptionpublic void WriteLine(java.lang.String message)
throws java.lang.Throwable
WriteLine in class TraceListenerjava.lang.Throwable