Show / Hide Table of Contents

Class BetterLogger

A simple wrapper around Unity.DebugLog to make it easier to configure logs

Inheritance
System.Object
BetterLogger
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Wully.Helpers
Assembly: !BetterMods.dll
Syntax
public class BetterLogger

Fields

| Improve this Doc View Source

local

Declaration
public static BetterLogger local
Field Value
Type Description
BetterLogger

Methods

| Improve this Doc View Source

ClassName()

Declaration
public string ClassName()
Returns
Type Description
System.String
| Improve this Doc View Source

Debug(Int32, String, String)

Declaration
[Pure]
public FluentLogger Debug(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type Name Description
System.Int32 lineNumber
System.String caller
System.String path
Returns
Type Description
FluentLogger
| Improve this Doc View Source

DisableLogging()

Disables Logging

Declaration
public void DisableLogging()
| Improve this Doc View Source

EnableLogging()

Enables Logging

Declaration
public void EnableLogging()
| Improve this Doc View Source

Error(Int32, String, String)

Declaration
[Pure]
public FluentLogger Error(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type Name Description
System.Int32 lineNumber
System.String caller
System.String path
Returns
Type Description
FluentLogger
| Improve this Doc View Source

Exception(Int32, String, String)

Declaration
[Pure]
public FluentLogger Exception(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type Name Description
System.Int32 lineNumber
System.String caller
System.String path
Returns
Type Description
FluentLogger
| Improve this Doc View Source

GetLogger(Type)

Gets a new instance of BetterLogger

Declaration
public static BetterLogger GetLogger(Type classType)
Parameters
Type Name Description
System.Type classType
Returns
Type Description
BetterLogger

Instance of BetterLogger

| Improve this Doc View Source

GetLogLevel()

Declaration
public BetterLogger.LogLevel GetLogLevel()
Returns
Type Description
BetterLogger.LogLevel
| Improve this Doc View Source

Info(Int32, String, String)

Declaration
[Pure]
public FluentLogger Info(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type Name Description
System.Int32 lineNumber
System.String caller
System.String path
Returns
Type Description
FluentLogger
| Improve this Doc View Source

IsEnabled()

Declaration
public bool IsEnabled()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

SetLogFullNameSpace(Boolean)

Enables or disables including the full class name in the log file

Declaration
public void SetLogFullNameSpace(bool enable)
Parameters
Type Name Description
System.Boolean enable
| Improve this Doc View Source

SetLoggingLevel(BetterLogger.LogLevel)

Sets the logging loggingLevel for this logger instance

Declaration
public void SetLoggingLevel(BetterLogger.LogLevel logLevel)
Parameters
Type Name Description
BetterLogger.LogLevel logLevel
| Improve this Doc View Source

ShouldLogFullNamespace()

Declaration
public bool ShouldLogFullNamespace()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Warn(Int32, String, String)

Declaration
[Pure]
public FluentLogger Warn(int lineNumber = 0, string caller = null, string path = null)
Parameters
Type Name Description
System.Int32 lineNumber
System.String caller
System.String path
Returns
Type Description
FluentLogger
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX