Table of Contents

Class LogUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods for log handling.

public static class LogUtils
Inheritance
LogUtils

Fields

Flags

Log related flags.

ShowDebugWelcomeMessage

Gets or sets whether to show debug welcome message with version number and other information.

Properties

LogPropMaxLength

Gets or sets max property value length for the LogPropLimitLength(object?, string, string?)

SectionSeparator

Gets or sets string which is logged before and after log section.

Methods

DebugLogToFile(object?, string?)

Same as LogToFile(object?, string?) but writes message to file only under debug environment (DEBUG conditional is defined).

DebugLogVersion(bool)

Logs environment versions.

DeleteLog()

Deletes application log file (specified in LogFilePath).

EnumLogActions(Action<string, Action>)

Enumerates registered log actions.

GenNewId()

Gets unique id for debug purposes.

GetEventKey(Type?, EventInfo?)

Gets event key.

GetLogMethod(bool, LogItemKind)

Gets logging method based on the toFile parameter value.

IsEventLogged(string)

Returns whether specified event is logged.

IsEventLogged(Type?, EventInfo?)

Returns whether specified event is logged.

LogActionToFile(Action, string?, string?)

Logs section using LogBeginSectionToFile(string?, string?), LogEndSectionToFile(string?) and calling action between these calls.

LogAndToFile(object?)

Logs message using Log(object?, LogItemKind) and after that calls LogToFile(object?, string?).

LogAppFinishedToFile()

Writes to log file "Application finished" header text.

LogAppStartedToFile()

Writes to log file "Application started" header text.

LogAsSection(IEnumerable?, LogItemKind)

Logs IEnumerable as section.

LogBeginSectionToFile(string?, string?)

Begins log to file section.

LogColor(string?, Color?)

Logs Color value.

LogColorAndRect(Color?, RectD, string?)

Logs Color and RectD values.

LogControlDescendants()

Logs all descendants of the control.

LogControlDescendantsEvents()

Logs events for all descendants of the control.

LogControlInfo(Control)

Logs control related global information (metrics, fonts, etc.).

LogEndSectionToFile(string?)

Ends log to file section.

LogEnumerable(IEnumerable?, LogItemKind)

Logs IEnumerable.

LogException(Exception, string?)

Logs Exception information.

LogExceptionIfDebug(Exception)

Logs Exception information if DEBUG is defined.

LogExceptionToConsole(Exception)

Logs exception to console.

LogExceptionToFile(Exception, string?)

Logs Exception information to file.

LogFontFamilies()

Logs FamiliesNames.

LogImageBitsFormats()

Logs image pixel formats.

LogInvalidBoundArgument(string, object, object, object)

Logs error 'InvalidBoundArgument'.

LogInvalidBoundArgumentUInt(string, int)

Logs error 'InvalidBoundArgument' for unsigned int values.

LogMeasureSkiaFont(string, SKFont)

Logs measurements of the specified string for the given font.

LogNameValueToFile(object, object?, string?)

Logs to file pair of name and value as "{name} = {value}".

LogOSInformation()

Logs OS related information (platform, version, etc.).

LogProp(object?, string, string?, LogItemKind)

Writes to log property value of the specified object.

LogPropLimitLength(object?, string, string?)

Writes to log property value of the specified object.

LogRange(IEnumerable, LogItemKind)

Logs IEnumerable.

LogRangeToFile(IEnumerable, string?, string?)

Logs IEnumerable to file.

LogResourceNames()

Logs to file all resource names.

LogSectionToFile(object?, string?, string?)

Logs section using LogBeginSectionToFile(string?, string?), LogEndSectionToFile(string?) and logging obj between these calls.

LogSkiaBitmap()

Logs SKBitmap metrics.

LogSkiaBitmap(SKBitmap, string?)

Logs SKBitmap metrics.

LogSkiaFont()

Logs SKFont metrics.

LogSkiaFont(SKFont)

Logs SKFont.

LogSkiaFontManager()

Logs SKFontManager related information.

LogSkiaMonoFonts()

Logs monospaced Skia fonts.

LogSystemColors()

Logs all system colors.

LogSystemSettings()

Logs SystemSettings.

LogToFile(object?, string?)

Logs message to the specified file or to default application log file.

LogUsefulDefines()

Logs useful c++ defines.

LogVersion(bool)

Logs environment versions.

RegisterLogAction(string, Action)

Registers log action which will be shown in the Developer Tools window.

SetEventLogged(Type?, EventInfo?, bool)

Sets whether to log specified event.

TestSystemColors(Func<KnownSystemColor, int>, Func<KnownSystemColor, int>)

Tests different methods of getting Argb of the system color.