Method LogErrorFormat
LogErrorFormat(string, params object[])
Write an error level formatted log message.
선언
public static void LogErrorFormat(string format, params object[] args)
파라미터
타입 | 이름 | 설명 |
---|---|---|
string | format | The string with format tags. |
object[] | args | The args used to fill in the format tags. |
참고
LogErrorFormat can be used to write a formatted Error level log message. LogErrorFormat supports Composite Formatting and works the same way as LogErrorFormat(string, params object[]). Addressables logs warnings and errors so by default this function will log.
예
public void UsingLogErrorFormatSample()
{
Addressables.LogErrorFormat("{0:o}[{1}]Unloading bundle", DateTime.Now, this.GetType().Name);
}