UNPKG

react-native-c8osdk

Version:
151 lines (89 loc) 3.2 kB
[react-native-c8osdk](../README.md) > ["c8oLogger"](../modules/_c8ologger_.md) > [C8oLogger](../classes/_c8ologger_.c8ologger.md) # Class: C8oLogger Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class ## Hierarchy **C8oLogger** ## Index ### Constructors * [constructor](_c8ologger_.c8ologger.md#constructor) ### Methods * [debug](_c8ologger_.c8ologger.md#debug) * [error](_c8ologger_.c8ologger.md#error) * [fatal](_c8ologger_.c8ologger.md#fatal) * [info](_c8ologger_.c8ologger.md#info) * [trace](_c8ologger_.c8ologger.md#trace) * [warn](_c8ologger_.c8ologger.md#warn) --- ## Constructors <a id="constructor"></a> ### constructor**new C8oLogger**(): [C8oLogger](_c8ologger_.c8ologger.md) **Returns:** [C8oLogger](_c8ologger_.c8ologger.md) ___ ## Methods <a id="debug"></a> ### debug**debug**(message: *`string`*): `Promise`<`any`> Log level debug Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___ <a id="error"></a> ### error**error**(message: *`string`*): `Promise`<`any`> Log level error Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___ <a id="fatal"></a> ### fatal**fatal**(message: *`string`*): `Promise`<`any`> Log level fatal Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___ <a id="info"></a> ### info**info**(message: *`string`*): `Promise`<`any`> Log level info Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___ <a id="trace"></a> ### trace**trace**(message: *`string`*): `Promise`<`any`> Log level debug Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___ <a id="warn"></a> ### warn**warn**(message: *`string`*): `Promise`<`any`> Log level warn Allow you to make a log both locally and remotlly on Convertigo server, logs can be paramettered from C8oSettings class **Parameters:** | Param | Type | Description | | ------ | ------ | ------ | | message | `string` | The message to log | **Returns:** `Promise`<`any`> Promise<any> ___