Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.LogSensor Class Reference
Inheritance diagram for nl.sense_os.cortex.LogSensor:

Classes

enum  LogType
 

Public Member Functions

void setMinSaveToSensorLogType (LogType logType)
 
void sendLog (LogType type, String tag, String text)
 

Static Public Member Functions

static LogSensor getInstance (SensePlatform sensePlatform)
 

Static Public Attributes

static final String name = "cortex_log"
 
static final String FIELD_TEXT = "text"
 
static final String FIELD_TYPE = "type"
 
static final String FIELD_TAG = "tag"
 

Detailed Description

This class sends log data to CommonSense.

Date
Oct 13 2014
Author
ted@s.nosp@m.ense.nosp@m.-os.n.nosp@m.l

Member Function Documentation

static LogSensor nl.sense_os.cortex.LogSensor.getInstance ( SensePlatform  sensePlatform)
static

Get the instance of the debug sensor.

By default the sensor data is not stored locally and not send to CommonSense.

Parameters
sensePlatformA binded sensePlatform object
Returns
The initiated MentalResilienceSensor
void nl.sense_os.cortex.LogSensor.sendLog ( LogType  type,
String  tag,
String  text 
)

Send log data

This function sends the log data to the subscribers and if enabled commonSense

Parameters
typeThe type of the log: VERBOSE, DEBUG, INFO, WARNING, ERROR
tagThe log tag
textThe log text
void nl.sense_os.cortex.LogSensor.setMinSaveToSensorLogType ( LogType  logType)

Set to save the data and send it to CommonSense

Parameters
logTypeThe minimum log type to upload the data for. When set to NONE no log info is uploaded

The documentation for this class was generated from the following file: