|
static final String | name = "cortex_log" |
|
static final String | FIELD_TEXT = "text" |
|
static final String | FIELD_TYPE = "type" |
|
static final String | FIELD_TAG = "tag" |
|
This class sends log data to CommonSense.
- Date
- Oct 13 2014
- Author
- ted@s.nosp@m.ense.nosp@m.-os.n.nosp@m.l
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
-
sensePlatform | A 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
-
type | The type of the log: VERBOSE, DEBUG, INFO, WARNING, ERROR |
tag | The log tag |
text | The log text |
void nl.sense_os.cortex.LogSensor.setMinSaveToSensorLogType |
( |
LogType |
logType | ) |
|
Set to save the data and send it to CommonSense
- Parameters
-
logType | The 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:
- android-sdk/src/nl/sense_os/cortex/LogSensor.java