Auctus Class Library
  • Welcome!
  • Community
  • Reference
    • Namespaces
    • Automation
      • Logger
        • Logger(String, LogType, Int32)
        • Logger(Exception, LogType, Int32)
        • Logger(String, Object, LogType, Int32)
        • Logger(String, Object, Object, LogType, Int32)
        • Logger(String, Object, Object, Object, LogType, Int32)
        • Logger(String, Object[], LogType, Int32)
        • Logger(Boolean, LogType, Int32)
        • Logger(Char, LogType, Int32)
        • Logger(Char[], LogType, Int32)
        • Logger(Char[], Int32, Int32, LogType, Int32)
        • Logger(Double, LogType, Int32)
        • Logger(Decimal, LogType, Int32)
        • Logger(Single, LogType, Int32)
        • Logger(Int32, LogType, Int32)
        • Logger(UInt32, LogType, Int32)
        • Logger(Int64, LogType, Int32)
        • Logger(UInt64, LogType, Int32)
        • Logger(Object, LogType, Int32)
      • SLNet
        • SendDmsFileChange(Engine, String)
        • ChangeCommunicationState(Engine, Int32, Int32, Boolean)
        • GetInfo<T>(Engine, InfoTypeSingle)
        • GetInfo<T>(Engine, InfoTypeArray)
        • AddDocument(Engine, String, String, Byte[])
    • Common
      • Comparators
        • ObjectReferenceEqualityComparer
      • Enums
        • InfoTypeSingle
        • InfoTypeArray
      • Data Types
        • Bool Extensions
          • ToInt()
        • Integer Extensions
          • ToBool()
          • ToEnum<TEnumType>()
        • Object Extensions
          • ToStr(Boolean)
          • ToInt(Boolean)
          • ToDouble(Boolean)
          • ToBool(Boolean)
          • FromOADate(Boolean)
          • ToEnum<TEnumType>(Boolean)
          • ToJson(Boolean)
          • IsNull()
        • StringBuilder Extensions
          • Append(String, Boolean)
          • AppendLine(String, Boolean)
          • LastAppended()
          • LastIndexOf()
        • String Extensions
          • ToEnum<TEnumType>(Boolean)
          • ParseReadableTimeSpan()
        • TimeSpan Extensions
          • ToReadableString(Boolean, Format)
      • SLNet Types
        • DMSMessage Extensions
          • CastDMSMessage<T>(DMSMessage[])
      • Files
        • Documents
          • GetDocumentPaths(String, String[])
          • GetProtocolFolderName(String)
          • GetSafeFilename(String, Char)
        • XmlParser
          • ParseXml(String, String)
          • ParseXml(String)
    • Protocol
      • Logger
        • Logger(String, LogType, Int32)
        • Logger(Exception, LogType, Int32)
        • Logger(String, Object, LogType, Int32)
        • Logger(String, Object, Object, LogType, Int32)
        • Logger(String, Object, Object, Object, LogType, Int32)
        • Logger(String, Object[], LogType, Int32)
        • Logger(Boolean, LogType, Int32)
        • Logger(Char, LogType, Int32)
        • Logger(Char[], LogType, Int32)
        • Logger(Char[], Int32, Int32, LogType, Int32)
        • Logger(Double, LogType, Int32)
        • Logger(Decimal, LogType, Int32)
        • Logger(Single, LogType, Int32)
        • Logger(Int32, LogType, Int32)
        • Logger(UInt32, LogType, Int32)
        • Logger(Int64, LogType, Int32)
        • Logger(UInt64, LogType, Int32)
        • Logger(Object, LogType, Int32)
      • SLNet
        • SendDmsFileChange(Engine, String)
        • ChangeCommunicationState(Engine, Int32, Int32, Boolean)
        • GetInfo<T>(Engine, InfoTypeSingle)
        • GetInfo<T>(Engine, InfoTypeArray)
        • AddDocument(Engine, String, String, Byte[])
Powered by GitBook
On this page
  1. Reference
  2. Automation
  3. Logger

Logger(String, Object, LogType, Int32)

Logs the text representation of the specified object using the specified format information.

PreviousLogger(Exception, LogType, Int32)NextLogger(String, Object, Object, LogType, Int32)

Last updated 2 years ago

Declaration
public static void Logger(string format, object arg0, LogType logType, int logLevel)
Example
engine.Logger("The temperature is {0}°C.", 20.4, LogType.Information, -1);
Result
Information|-1|ID0|Logger_1_Arg_Test|The temperature is 20.4°C.
Type
Name
Description

format

A composite format string.

arg0

An object to write using format parameter.

logType

Specifies the log type.

logLevel

Specifies the log level.

String
Object
LogType
Int32