You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
556 B
19 lines
556 B
using System; |
|
using UnityEngine; |
|
|
|
namespace UnityEditor.Graphing |
|
{ |
|
class ConsoleLogHandler : ILogHandler |
|
{ |
|
public void LogFormat(LogType logType, UnityEngine.Object context, string format, params object[] args) |
|
{ |
|
var formatted = string.Format(format, args); |
|
Console.WriteLine("{0}:{1} - {2}", logType, context, formatted); |
|
} |
|
|
|
public void LogException(Exception exception, UnityEngine.Object context) |
|
{ |
|
Console.WriteLine("{0} - {1}", context, exception); |
|
} |
|
} |
|
}
|
|
|