Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 386 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 386 Bytes

A helper library to log like Android log.

Usage

#include "ALog.h"

#define LOG_TAG "Example"

int main(int argc, char **argv) {
    LOGI(LOG_TAG, "Hello!");
    LOGI(LOG_TAG, "Bye!");
    return 0;
}

output:

[2023-11-11 23:26:33.259][pid23288][tid23288][info][Example][main#10]Hello!
[2023-11-11 23:26:33.259][pid23288][tid23288][info][Example][main#11]Bye!