public class Log extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/Microsoft.VisualBasic.Logging.Log
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: Microsoft.VisualBasic.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.VisualBasic.Forms
|
static java.lang.String |
className
Qualified class name: Microsoft.VisualBasic.Logging.Log
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Log()
Initializes a new instance by invoking the .NET constructor.
|
Log(java.lang.Object instance)
Internal constructor.
|
Log(java.lang.String name)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Log |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Log, a cast assert is made to check if types are compatible. |
FileLogTraceListener |
getDefaultFileLogWriter()
Gets the value of the .NET property DefaultFileLogWriter.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
TraceSource |
getTraceSource()
Gets the value of the .NET property TraceSource.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
WriteEntry(java.lang.String message)
Invokes the .NET member WriteEntry.
|
void |
WriteEntry(java.lang.String message,
TraceEventType severity)
Invokes the .NET member WriteEntry.
|
void |
WriteEntry(java.lang.String message,
TraceEventType severity,
int id)
Invokes the .NET member WriteEntry.
|
void |
WriteException(NetException ex)
Invokes the .NET member WriteException.
|
void |
WriteException(NetException ex,
TraceEventType severity,
java.lang.String additionalInfo)
Invokes the .NET member WriteException.
|
void |
WriteException(NetException ex,
TraceEventType severity,
java.lang.String additionalInfo,
int id)
Invokes the .NET member WriteException.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Log()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
NotSupportedException,
OverflowException,
FormatException,
FileNotFoundException,
MulticastNotSupportedException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itFileNotFoundException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itpublic Log(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Log(java.lang.String name)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
NotSupportedException,
OverflowException,
FormatException,
FileNotFoundException
name - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic static Log cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Log, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedLog instancejava.lang.Throwable - in case of error during cast operationpublic FileLogTraceListener getDefaultFileLogWriter() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic TraceSource getTraceSource() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void WriteEntry(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException
message - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteEntry(java.lang.String message,
TraceEventType severity)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException
message - the argument of type java.lang.Stringseverity - the argument of type TraceEventTypejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteEntry(java.lang.String message,
TraceEventType severity,
int id)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException
message - the argument of type java.lang.Stringseverity - the argument of type TraceEventTypeid - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteException(NetException ex) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, OutOfMemoryException
ex - the argument of type NetExceptionjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteException(NetException ex, TraceEventType severity, java.lang.String additionalInfo) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException, OutOfMemoryException
ex - the argument of type NetExceptionseverity - the argument of type TraceEventTypeadditionalInfo - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteException(NetException ex, TraceEventType severity, java.lang.String additionalInfo, int id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, FormatException
ex - the argument of type NetExceptionseverity - the argument of type TraceEventTypeadditionalInfo - the argument of type java.lang.Stringid - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises it