Functions
The following functions are available globally.
-
Logs a message to the Firebase Crash Reporter system.
This method adds a message to the crash reporter logging system. The recent logs will be sent with the crash report when the application exits abnormally. Note that the timestamp of this message and the timestamp of the console message may differ by a few milliseconds.
Messages should be brief as the total size of the message payloads is limited by the uploader and may change between releases of the crash reporter. Excessively long messages will be truncated safely but that will introduce a delay in submitting the message.
Warning
Raises an NSInvalidArgumentException if @p format is nil.
Declaration
Objective-C
extern void FIRCrashLogv(NSString *_Nonnull format, va_list ap)
Parameters
format
A format string.
ap
A variable argument list.
-
Logs a message to the Firebase Crash Reporter system.
This method adds a message to the crash reporter logging system. The recent logs will be sent with the crash report when the application exits abnormally. Note that the timestamp of this message and the timestamp of the console message may differ by a few milliseconds.
Messages should be brief as the total size of the message payloads is limited by the uploader and may change between releases of the crash reporter. Excessively long messages will be truncated safely but that will introduce a delay in submitting the message.
Warning
Raises an NSInvalidArgumentException if @p format is nil.
See
FIRCrashLogv(format, ap)
Declaration
Objective-C
static inline void FIRCrashLog(NSString *_Nonnull format, ...)
Parameters
format
A format string.
...
A comma-separated list of arguments to substitute into format.
-
Logs a message to the Firebase Crash Reporter system as well as
NSLog()
.This method adds a message to the crash reporter logging system. The recent logs will be sent with the crash report when the application exits abnormally. Note that the timestamp of this message and the timestamp of the console message may differ by a few milliseconds.
Messages should be brief as the total size of the message payloads is limited by the uploader and may change between releases of the crash reporter. Excessively long messages will be truncated safely but that will introduce a delay in submitting the message.
Warning
Raises an NSInvalidArgumentException if @p format is nil.
Declaration
Objective-C
static inline void FIRCrashNSLogv(NSString *_Nonnull format, va_list ap)
Parameters
format
A format string.
ap
A variable argument list.
-
Logs a message to the Firebase Crash Reporter system as well as
NSLog()
.This method adds a message to the crash reporter logging system. The recent logs will be sent with the crash report when the application exits abnormally. Note that the timestamp of this message and the timestamp of the console message may differ by a few milliseconds.
Messages should be brief as the total size of the message payloads is limited by the uploader and may change between releases of the crash reporter. Excessively long messages will be truncated safely but that will introduce a delay in submitting the message.
Warning
Raises an NSInvalidArgumentException if @p format is nil.
See
FIRCrashLogv(format, ap)
Declaration
Objective-C
static inline void FIRCrashNSLog(NSString *_Nonnull format, ...)
Parameters
format
A format string.
...
A comma-separated list of arguments to substitute into format.
-
Logs a message to the Firebase Crash Reporter system in a way that is easily called from Swift code.
This method adds a message to the crash reporter logging system. Similar to FIRCrashLog, but with a call signature that is more Swift friendly. Unlike FIRCrashLog, callers use string interpolation instead of formatting arguments.
@code public func mySwiftFunction() { let unexpected_number = 10; FIRCrashMessage(
This number doesn’t seem right: \(unexpected_number)
); } @endcodeMessages should be brief as the total size of the message payloads is limited by the uploader and may change between releases of the crash reporter. Excessively long messages will be truncated safely but that will introduce a delay in submitting the message.
See
FIRCrashLog(format, …)
Declaration
Objective-C
static inline void FIRCrashMessage(NSString *_Nonnull message)
Parameters
message
A log message