Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make allonet printouts nicer to read for both humans and computers #27

Open
Voxar opened this issue May 31, 2022 · 2 comments
Open

Make allonet printouts nicer to read for both humans and computers #27

Voxar opened this issue May 31, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Voxar
Copy link
Member

Voxar commented May 31, 2022

This is mainly for log ingestion and metrics

Fund with Polar
@Voxar Voxar self-assigned this May 31, 2022
@Voxar Voxar added the enhancement New feature or request label May 31, 2022
@Voxar
Copy link
Member Author

Voxar commented May 31, 2022

[TYPE] <ID,ID,ID> "message"

TYPE: INFO|DEBUG|ERROR
MODULE: asset|sound|client|server
ID: any id associated with the message, for example asset id's client id's
message: any string, in quotes

@Voxar
Copy link
Member Author

Voxar commented May 31, 2022

until.h helper

void allo_log( LogType type, const char *module, const char *identifiers, const char *format, ... )

per module helper

#define client_log(type, client, format, ...) { \
    char *id = formatClientId(client); \
    allo_log(type, "client", id, format, __VA_ARGS__); \
    if(id)free(id); \
} while(false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ▶️ In Progress
Development

No branches or pull requests

1 participant