NowLoggingService class - iOS

concept brazil Updated Sep 10, 2026 1 min read NowLoggingServiceiOSAPI.md
Raw file servicenow.com

The NowLoggingService class provides functions that provide logging capabilities to feature services with the NowSDK.

Name

Type

Description

logLevel

NowLogLevel

Level of log messages for the associated logger to store.Valid values:

  • debug
  • error
  • fatal
  • log
  • info
  • none
**Parent Topic:**[Mobile SDK - iOS](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/cllent-mobile-api-reference/MobileSDKiOSAPI.md)

NowLoggingService - logger(for category: NowLogCategory)

Returns a logger for the specified feature service.

Name

Type

Description

for category

NowLogCategory

Feature service whose logger you want returned.Valid values:

  • analytics
  • chat
  • coresdk
  • data
  • sdk
  • web
|Type|Description| |----|-----------| |NowLogging|Logger to use to save all log messages for the associated service.|

The following code example shows how to call this function.

JavaScript
let logging = NowLoggingService.logger(for: .chat)…logger.error(message: "Could not create service - service configuration invalid")…logger.debug(message: "Verifying settings…")

NowLoggingService - setLogLevel(_ logLevel: NowLogLevel)

Sets the desired logging level.

Note: Incoming log messages with types that don’t meet the set log level threshold are discarded.

Name

Type

Description

logLevel

NowLogLevel

Level of log messages for the associated logger to store.Valid values:

  • debug
  • error
  • fatal
  • info
  • none
|Type|Description| |----|-----------| |None| |

The following code example shows how to call this function.

Text
NowLoggingService.setLogLevel(.info)
Search documentation
Search document titles and file paths on the brazil branch