// Generated by tsbindgen - Architecture // Namespace: System.Diagnostics // Assembly: System.Diagnostics.DiagnosticSource, System.Diagnostics.EventLog, System.Diagnostics.FileVersionInfo, System.Diagnostics.Process, System.Diagnostics.TextWriterTraceListener, System.Diagnostics.TraceSource, System.Private.CoreLib // Core type aliases from @tsonic/core import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js'; // Import types from other namespaces import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections/internal/index.js"; import type { ICollection, IEnumerable, IEnumerator } from "@tsonic/dotnet/System.Collections/internal/index.js"; import * as System_ComponentModel_Internal from "@tsonic/dotnet/System.ComponentModel/internal/index.js"; import type { Component, IComponent, ISupportInitialize, ISynchronizeInvoke } from "@tsonic/dotnet/System.ComponentModel/internal/index.js"; import * as System_Diagnostics_Internal from "@tsonic/dotnet/System.Diagnostics/internal/index.js"; import type { TraceEventCache, TraceEventType, TraceListener } from "@tsonic/dotnet/System.Diagnostics/internal/index.js"; import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js"; import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js"; import * as System_Internal from "@tsonic/dotnet/System/internal/index.js"; import type { AsyncCallback, Boolean as ClrBoolean, Byte, DateTime, Enum, EventArgs, IAsyncResult, ICloneable, IComparable, IConvertible, IDisposable, IFormattable, Int16, Int32, Int64, IntPtr, ISpanFormattable, MulticastDelegate, Object as ClrObject, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js"; export enum EventLogEntryType { Error = 1, Warning = 2, Information = 4, SuccessAudit = 8, FailureAudit = 16 } export enum OverflowAction { DoNotOverwrite = -1, OverwriteAsNeeded = 0, OverwriteOlder = 1 } export type EntryWrittenEventHandler = (sender: unknown, e: EntryWrittenEventArgs) => void; export interface EntryWrittenEventArgs$instance extends EventArgs { readonly __tsonic_type_System_Diagnostics_EntryWrittenEventArgs: never; readonly Entry: EventLogEntry; } export const EntryWrittenEventArgs: { new(): EntryWrittenEventArgs; new(entry: EventLogEntry): EntryWrittenEventArgs; }; export type EntryWrittenEventArgs = EntryWrittenEventArgs$instance; export interface EventInstance$instance { readonly __tsonic_type_System_Diagnostics_EventInstance: never; CategoryId: int; EntryType: EventLogEntryType; InstanceId: long; } export const EventInstance: { new(instanceId: long, categoryId: int): EventInstance; new(instanceId: long, categoryId: int, entryType: EventLogEntryType): EventInstance; }; export type EventInstance = EventInstance$instance; export interface EventLog$instance extends Component { readonly __tsonic_type_System_Diagnostics_EventLog: never; readonly __tsonic_iface_System_ComponentModel_IComponent: never; readonly __tsonic_iface_System_ComponentModel_ISupportInitialize: never; readonly __tsonic_iface_System_IDisposable: never; EnableRaisingEvents: boolean; readonly Entries: EventLogEntryCollection; Log: string; readonly LogDisplayName: string; MachineName: string; MaximumKilobytes: long; readonly MinimumRetentionDays: int; readonly OverflowAction: OverflowAction; Source: string; SynchronizingObject: ISynchronizeInvoke; BeginInit(): void; Clear(): void; Close(): void; Dispose(disposing: boolean): void; EndInit(): void; ModifyOverflowPolicy(action: OverflowAction, retentionDays: int): void; RegisterDisplayName(resourceFile: string, resourceId: long): void; WriteEntry(message: string): void; WriteEntry(message: string, type: EventLogEntryType): void; WriteEntry(message: string, type: EventLogEntryType, eventID: int): void; WriteEntry(message: string, type: EventLogEntryType, eventID: int, category: short): void; WriteEntry(message: string, type: EventLogEntryType, eventID: int, category: short, rawData: byte[]): void; WriteEvent(instance: EventInstance, data: byte[], ...values: unknown[]): void; WriteEvent(instance: EventInstance, ...values: unknown[]): void; } export const EventLog: { new(): EventLog; new(logName: string): EventLog; new(logName: string, machineName: string): EventLog; new(logName: string, machineName: string, source: string): EventLog; CreateEventSource(sourceData: EventSourceCreationData): void; CreateEventSource(source: string, logName: string, machineName: string): void; CreateEventSource(source: string, logName: string): void; Delete(logName: string, machineName: string): void; Delete(logName: string): void; DeleteEventSource(source: string, machineName: string): void; DeleteEventSource(source: string): void; Exists(logName: string, machineName: string): boolean; Exists(logName: string): boolean; GetEventLogs(): EventLog[]; GetEventLogs(machineName: string): EventLog[]; LogNameFromSourceName(source: string, machineName: string): string; SourceExists(source: string, machineName: string): boolean; SourceExists(source: string): boolean; WriteEntry(source: string, message: string, type: EventLogEntryType, eventID: int, category: short, rawData: byte[]): void; WriteEntry(source: string, message: string, type: EventLogEntryType, eventID: int, category: short): void; WriteEntry(source: string, message: string, type: EventLogEntryType, eventID: int): void; WriteEntry(source: string, message: string, type: EventLogEntryType): void; WriteEntry(source: string, message: string): void; WriteEvent(source: string, instance: EventInstance, data: byte[], ...values: unknown[]): void; WriteEvent(source: string, instance: EventInstance, ...values: unknown[]): void; }; export type EventLog = EventLog$instance; export interface EventLogEntry$instance extends Component { readonly __tsonic_type_System_Diagnostics_EventLogEntry: never; readonly __tsonic_iface_System_ComponentModel_IComponent: never; readonly __tsonic_iface_System_IDisposable: never; readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never; readonly Category: string; readonly CategoryNumber: short; readonly Data: byte[]; readonly EntryType: EventLogEntryType; readonly EventID: int; readonly Index: int; readonly InstanceId: long; readonly MachineName: string; readonly Message: string; readonly ReplacementStrings: string[]; readonly Source: string; readonly TimeGenerated: DateTime; readonly TimeWritten: DateTime; readonly UserName: string; Equals(otherEntry: EventLogEntry): boolean; } export const EventLogEntry: { }; export type EventLogEntry = EventLogEntry$instance; export interface EventLogEntryCollection$instance { readonly __tsonic_type_System_Diagnostics_EventLogEntryCollection: never; readonly __tsonic_iface_System_Collections_ICollection: never; readonly __tsonic_iface_System_Collections_IEnumerable: never; readonly Count: int; CopyTo(entries: EventLogEntry[], index: int): void; GetEnumerator(): IEnumerator; } export const EventLogEntryCollection: { }; export type EventLogEntryCollection = EventLogEntryCollection$instance & { readonly [index: number]: EventLogEntry; }; export interface EventLogTraceListener$instance extends TraceListener { readonly __tsonic_type_System_Diagnostics_EventLogTraceListener: never; readonly __tsonic_iface_System_IDisposable: never; EventLog: EventLog; Name: string; Close(): void; Dispose(disposing: boolean): void; TraceData(eventCache: TraceEventCache, source: string, severity: TraceEventType, id: int, data: unknown): void; TraceData(eventCache: TraceEventCache, source: string, severity: TraceEventType, id: int, ...data: unknown[]): void; TraceEvent(eventCache: TraceEventCache, source: string, severity: TraceEventType, id: int, message: string): void; TraceEvent(eventCache: TraceEventCache, source: string, severity: TraceEventType, id: int, format: string, ...args: unknown[]): void; Write(message: string): void; WriteLine(message: string): void; } export const EventLogTraceListener: { new(): EventLogTraceListener; new(eventLog: EventLog): EventLogTraceListener; new(source: string): EventLogTraceListener; }; export type EventLogTraceListener = EventLogTraceListener$instance; export interface EventSourceCreationData$instance { readonly __tsonic_type_System_Diagnostics_EventSourceCreationData: never; CategoryCount: int; CategoryResourceFile: string; LogName: string; MachineName: string; MessageResourceFile: string; ParameterResourceFile: string; Source: string; } export const EventSourceCreationData: { new(source: string, logName: string): EventSourceCreationData; }; export type EventSourceCreationData = EventSourceCreationData$instance;