Skip to content

Most visited

Recently visited

navigation

log.h File Reference

log.h File Reference

Typedefs

typedef enum android_LogPriority android_LogPriority
 

Enumerations

enum  android_LogPriority {
  ANDROID_LOG_UNKNOWN = 0, ANDROID_LOG_DEFAULT, ANDROID_LOG_VERBOSE, ANDROID_LOG_DEBUG,
  ANDROID_LOG_INFO, ANDROID_LOG_WARN, ANDROID_LOG_ERROR, ANDROID_LOG_FATAL,
  ANDROID_LOG_SILENT
}
 

Functions

int __android_log_write (int prio, const char *tag, const char *text)
 
int __android_log_print (int prio, const char *tag, const char *fmt,...) __attribute__((__format__(gnu_printf
 
int __attribute__ ((__format__(printf, 3, 4))) __attribute__((__format__(printf
 
int int __android_log_vprint (int prio, const char *tag, const char *fmt, va_list ap) __attribute__((__format__(gnu_printf
 
int int __attribute__ ((__format__(printf, 3, 0))) __attribute__((__format__(printf
 
int int void __android_log_assert (const char *cond, const char *tag, const char *fmt,...) __attribute__((__noreturn__)) __attribute__((__format__(gnu_printf
 

Typedef Documentation

§ android_LogPriority

Enumeration Type Documentation

§ android_LogPriority

Enumerator
ANDROID_LOG_UNKNOWN 
ANDROID_LOG_DEFAULT 
ANDROID_LOG_VERBOSE 
ANDROID_LOG_DEBUG 
ANDROID_LOG_INFO 
ANDROID_LOG_WARN 
ANDROID_LOG_ERROR 
ANDROID_LOG_FATAL 
ANDROID_LOG_SILENT 

Function Documentation

§ __android_log_assert()

int int void __android_log_assert ( const char *  cond,
const char *  tag,
const char *  fmt,
  ... 
)

§ __android_log_print()

int __android_log_print ( int  prio,
const char *  tag,
const char *  fmt,
  ... 
)

§ __android_log_vprint()

int int __android_log_vprint ( int  prio,
const char *  tag,
const char *  fmt,
va_list  ap 
)

§ __android_log_write()

int __android_log_write ( int  prio,
const char *  tag,
const char *  text 
)

§ __attribute__() [1/2]

int int void __attribute__ ( (__format__(printf, 3, 4))  )

§ __attribute__() [2/2]

int int __attribute__ ( (__format__(printf, 3, 0))  )
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)