class ARLog (Niantic.ARDK.Utilities.Logging.ARLog)
Overview
Provides a common log for ARDK systems. More…
class ARLog { public: // properties IARLogHandler LogHandler; bool PerFrameLogsEnabled; // methods static void DisableLogFeature(string feature); static void DisableLogFeatures(IEnumerable<string> features); static void EnableLogFeature(string feature); static void EnableLogFeatures(IEnumerable<string> features); };
Detailed Documentation
Provides a common log for ARDK systems.
Properties
IARLogHandler LogHandler
Gets or sets the log handler used by ARLog.
Note
If no handler is set or null is passed in, ARLog will default to using UnityEngine’s Debug.Log.
bool PerFrameLogsEnabled
Whether or not to enable logs that print every frame (peer messages, frame updates, etc) Enabling this will decrease performance, as printing multiple logs per frame is expensive
Methods
static void DisableLogFeature(string feature)
Disable logging for a feature
Parameters:
feature |
Feature to no longer log |
static void DisableLogFeatures(IEnumerable<string> features)
Disable logging for a set of features
Parameters:
features |
Features to no longer log |
static void EnableLogFeature(string feature)
Enable logging for a specific feature
Parameters:
feature |
Feature to log |
static void EnableLogFeatures(IEnumerable<string> features)
Enable logging for a set of features
Parameters:
features |
Features to log |