Flutter Engine
log.h File Reference
#include <stdint.h>
#include "flutter/fml/logging.h"

Go to the source code of this file.

Macros

#define LOG_ALWAYS_FATAL_IF(cond, ...)   ((cond) ? (FML_LOG(FATAL) << #cond) : (void)0)
 
#define LOG_ALWAYS_FATAL(...)   FML_LOG(FATAL)
 
#define LOG_ASSERT(cond, ...)   FML_CHECK(cond)
 
#define ALOG_ASSERT   LOG_ASSERT
 
#define ALOGD(message, ...)   FML_DLOG(INFO) << (message)
 
#define ALOGW(message, ...)   FML_LOG(WARNING) << (message)
 
#define ALOGE(message, ...)   FML_LOG(ERROR) << (message)
 
#define android_errorWriteLog(tag, subTag)   __android_log_error_write(tag, subTag, -1, NULL, 0)
 
#define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen)   __android_log_error_write(tag, subTag, uid, data, dataLen)
 

Functions

int __android_log_error_write (int tag, const char *subTag, int32_t uid, const char *data, uint32_t dataLen)
 

Macro Definition Documentation

◆ ALOG_ASSERT

#define ALOG_ASSERT   LOG_ASSERT

Definition at line 39 of file log.h.

◆ ALOGD

#define ALOGD (   message,
  ... 
)    FML_DLOG(INFO) << (message)

Definition at line 43 of file log.h.

◆ ALOGE

#define ALOGE (   message,
  ... 
)    FML_LOG(ERROR) << (message)

Definition at line 51 of file log.h.

◆ ALOGW

#define ALOGW (   message,
  ... 
)    FML_LOG(WARNING) << (message)

Definition at line 47 of file log.h.

◆ android_errorWriteLog

#define android_errorWriteLog (   tag,
  subTag 
)    __android_log_error_write(tag, subTag, -1, NULL, 0)

Definition at line 54 of file log.h.

◆ android_errorWriteWithInfoLog

#define android_errorWriteWithInfoLog (   tag,
  subTag,
  uid,
  data,
  dataLen 
)    __android_log_error_write(tag, subTag, uid, data, dataLen)

Definition at line 56 of file log.h.

◆ LOG_ALWAYS_FATAL

#define LOG_ALWAYS_FATAL (   ...)    FML_LOG(FATAL)

Definition at line 34 of file log.h.

◆ LOG_ALWAYS_FATAL_IF

#define LOG_ALWAYS_FATAL_IF (   cond,
  ... 
)    ((cond) ? (FML_LOG(FATAL) << #cond) : (void)0)

Definition at line 29 of file log.h.

◆ LOG_ASSERT

#define LOG_ASSERT (   cond,
  ... 
)    FML_CHECK(cond)

Definition at line 38 of file log.h.

Function Documentation

◆ __android_log_error_write()

int __android_log_error_write ( int  tag,
const char *  subTag,
int32_t  uid,
const char *  data,
uint32_t  dataLen 
)

Definition at line 19 of file log.cc.

23  {
24  return 0;
25 }