Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

UniRx.Diagnostics

Yoshifumi Kawai edited this page Jul 22, 2018 · 4 revisions

LogEntry

public struct UniRx.Diagnostics.LogEntry

Properties

Type Name Summary
Object Context [Optional]
Exception Exception [Optional]
String LoggerName
LogType LogType
String Message
String StackTrace [Optional]
Object State [Optional]
DateTime Timestamp

Methods

Type Name Summary
String ToString()

LogEntryExtensions

public static class UniRx.Diagnostics.LogEntryExtensions

Static Methods

Type Name Summary
IDisposable LogToUnityDebug(this IObservable<LogEntry> source)

Logger

public class UniRx.Diagnostics.Logger

Fields

Type Name Summary
Action<LogEntry> logPublisher

Properties

Type Name Summary
String Name

Methods

Type Name Summary
void Debug(Object message, Object context = null) Output LogType.Log but only enables isDebugBuild
void DebugFormat(String format, Object[] args) Output LogType.Log but only enables isDebugBuild
void Error(Object message, Object context = null)
void ErrorFormat(String format, Object[] args)
void Exception(Exception exception, Object context = null)
void Log(Object message, Object context = null)
void LogFormat(String format, Object[] args)
void Raw(LogEntry logEntry) Publish raw LogEntry.
void Warning(Object message, Object context = null)
void WarningFormat(String format, Object[] args)

ObservableDebugExtensions

public static class UniRx.Diagnostics.ObservableDebugExtensions

Static Methods

Type Name Summary
IObservable<T> Debug(this IObservable<T> source, String label = null) Debug helper of observbale stream. Works for only DEBUG symbol.
IObservable<T> Debug(this IObservable<T> source, Logger logger) Debug helper of observbale stream. Works for only DEBUG symbol.

ObservableLogger

public class UniRx.Diagnostics.ObservableLogger
    : IObservable<LogEntry>

Methods

Type Name Summary
IDisposable Subscribe(IObserver<LogEntry> observer)

Static Fields

Type Name Summary
ObservableLogger Listener

Static Methods

Type Name Summary
Action<LogEntry> RegisterLogger(Logger logger)

UnityDebugSink

public class UniRx.Diagnostics.UnityDebugSink
    : IObserver<LogEntry>

Methods

Type Name Summary
void OnCompleted()
void OnError(Exception error)
void OnNext(LogEntry value)