Mobile API Reference  MicroStrategy 2019
MSILogger Class Reference

#import <MSILogger.h>

Inheritance diagram for MSILogger:

Instance Methods

(void) - logWithLevel:className:methodName:message:
 
(void) - logWithLevel:className:methodName:message:module:
 
(BOOL- isLoggable:
 
(void) - addHandler:
 
(BOOL- imageCachePerformanceLogEnabled
 

Class Methods

(NSDictionary *) + logMoudlesDic
 

Properties

LogLevels level
 

Detailed Description

MSILogger is used for comprehensive logging into the MicroStrategy log. The records contain detailed fields. MSILogger also provides guidance for filtering entries.

See also
LogLevels

Method Documentation

◆ addHandler:()

- (void) addHandler: (Handler *)  handler

◆ imageCachePerformanceLogEnabled()

- (BOOL) imageCachePerformanceLogEnabled

◆ isLoggable:()

- (BOOL) isLoggable: (LogLevels level

isLoggable: provides guidance on whether a proposed level is important enough to be logged, given the current MSILogger logging level.

See also
LogLevels

◆ logMoudlesDic()

+ (NSDictionary *) logMoudlesDic

◆ logWithLevel:className:methodName:message:()

- (void) logWithLevel: (LogLevels level
className: (NSString *)  className
methodName: (NSString *)  method
message: (NSString *)  msg 

logWithLevel:className:methodName:message: makes the actual log entry. LogLevels is used for guidance on whether to log something, but is not enforced. For example,

if ( [[MSILog getLogger] isLoggable: Severe ] )
{
 [[MSILog getLogger] logWithLevel: Severe
                     className: @"ApplicationLauncherController"
                    methodName: @"startLaunch"
                       message: @"The URL is not valid." ];
}
See also
LogLevels

◆ logWithLevel:className:methodName:message:module:()

- (void) logWithLevel: (LogLevels level
className: (NSString *)  className
methodName: (NSString *)  method
message: (NSString *)  msg
module: (NSString *)  module 

logWithLevel:className:methodName:message:module: makes the actual log entry. LogLevels is used for guidance on whether to log something, but is not enforced. For example,

if ( [[MSILog getLogger] isLoggable: Severe ] ) { [[MSILog getLogger] logWithLevel: Severe className: "ApplicationLauncherController" methodName: @"startLaunch" message: @"The URL is not valid." module: @"ApplicationLauncher"]; }

See also
LogLevels

Property Documentation

◆ level

- (LogLevels) level
readwriteatomic