About Logger

Contents

Introduction

The following examples show how to use the PCAPILogger and PCAPIConsoleLogger class methods to start ,stop, add, and remove logging in SDK.

Examples

Start Logging

Code Sample

[[PCAPILogger sharedLogger] startLogging];  

Stop Logging

Code Sample

[[PCAPILogger sharedLogger] stopLogging];  

Add a Log Level

PCAPIConsoleLogger *debugLogger = [PCAPIConsoleLogger new];
    debugLogger.logLevel = PCAPILoggerLevelDebug;
    [[PCAPILogger sharedLogger] addLogger:debugLogger];  

Remove Log Level

Code Sample

[[PCAPILogger sharedLogger] removeLogger:debugLogger]; 

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.