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

Default logging is flooding my ubuntu's production log with all queries results #665

Open
jupagose opened this issue Jan 18, 2025 · 5 comments

Comments

@jupagose
Copy link

HI I'm started using it in my.net 8 app but having an issue, al results are being logged in my journalctl.

All my logs are set as defulto to Error.

Any Ideas would be very appreciated.

@jupagose
Copy link
Author

Is this planned for newer versions ?

@rose-a
Copy link
Collaborator

rose-a commented Feb 11, 2025

There is no explicit logging implemented in this library, except from some Debug.WriteLine() in the websocket handler (which shouldn't bother you as user of the release build).

Which class creates the log output? I suspect it's some Microsoft class and there is an error in your logging config somewhere...

@jupagose
Copy link
Author

Thanks for answer but my clien side log is full of

Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "eventosQueries": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "getEventosFilteredAsync": [
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 10019,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "V Retiro de comunidad parejas",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraInicio": "2025-06-21T07:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraFinaliza": "2025-06-22T19:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idTipoEvento": 5,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idComunidad": 6239,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idMinisterio": 6243,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idUbicacion": 6242,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionesAbiertas": true,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionPorInvitacion": false,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Comunidad": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "San Antonio de Pereira",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "geo_Ubicaciones": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "nombregeografico": "RIONEGRO",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "ubicacionGeografica": "RIONEGRO (ANTIOQUIA)\rCOLOMBIA"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: }
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ministerio": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Emaús Adultos"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ubicacion": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Casa de encuentros El Rodeo de Santa Ana"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "eventosTipos": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 5,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "asset": "parejas.svg",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Retiro Parejas Emaús",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcionCorta": "Parejas",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "backGroundColor": "--rz-series-10 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "textColor": "--rz-base-700 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "linkEvento": null
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 10020,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "San Antonio de Pereira X Retiro mujeres 2025",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraInicio": "2025-10-31T15:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraFinaliza": "2025-11-02T19:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idTipoEvento": 1,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idComunidad": 6239,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idMinisterio": 6243,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idUbicacion": 6242,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionesAbiertas": true,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionPorInvitacion": false,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Comunidad": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "San Antonio de Pereira",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "geo_Ubicaciones": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "nombregeografico": "RIONEGRO",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "ubicacionGeografica": "RIONEGRO (ANTIOQUIA)\rCOLOMBIA"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: }
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ministerio": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Emaús Adultos"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ubicacion": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Casa de encuentros El Rodeo de Santa Ana"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "eventosTipos": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 1,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "asset": "maria.jpeg",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Retiro Mujeres Emaús ",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcionCorta": "Mujeres",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "backGroundColor": "--rz-series-19 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "textColor": "--rz-base-700 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "linkEvento": null
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 10021,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Primer Retiro de Mujeres",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraInicio": "2025-02-21T04:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraFinaliza": "2025-02-23T03:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idTipoEvento": 1,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idComunidad": 17189,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idMinisterio": 6243,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idUbicacion": 6241,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionesAbiertas": false,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionPorInvitacion": false,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Comunidad": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "San José",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "geo_Ubicaciones": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "nombregeografico": "El Carmen de Viboral",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "ubicacionGeografica": "EL CARMEN DE VIBORAL (ANTIOQUIA) COLOMBIA"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: }
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ministerio": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Emaús Adultos"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ubicacion": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Casa de espiritualidad Nuestra Galilea"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "eventosTipos": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 1,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "asset": "maria.jpeg",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Retiro Mujeres Emaús ",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcionCorta": "Mujeres",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "backGroundColor": "--rz-series-19 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "textColor": "--rz-base-700 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "linkEvento": null
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 10022,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "I Retiro de hombres (San José)",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraInicio": "2025-02-28T15:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraFinaliza": "2025-03-02T03:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idTipoEvento": 2,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idComunidad": 17189,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idMinisterio": 6243,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "idUbicacion": 6241,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionesAbiertas": true,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "inscripcionPorInvitacion": false,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Comunidad": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "San José",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "geo_Ubicaciones": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "nombregeografico": "El Carmen de Viboral",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "ubicacionGeografica": "EL CARMEN DE VIBORAL (ANTIOQUIA) COLOMBIA"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: }
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ministerio": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Emaús Adultos"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "personas_Ubicacion": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "primerNombre": "Casa de espiritualidad Nuestra Galilea"
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "eventosTipos": {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 2,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "asset": "jose.jpeg",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Retiro Hombres Emaús ",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcionCorta": "Hombres",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "backGroundColor": "--rz-series-22 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "textColor": "--rz-base-700 >
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "linkEvento": null
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: },
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: {
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "id": 10024,
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "descripcion": "Retiro hombres",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraInicio": "2025-02-14T15:00:00-05:00",
Feb 08 12:05:54 vmi494768.myproductionserver.net MyApp.App-DotNet8[3459948]: "fechaHoraFinaliza": "2025-02-16T19:00:00-05:00",

All queries made by the client are being logged.

@rose-a
Copy link
Collaborator

rose-a commented Feb 12, 2025

what logging framework do you use?

@jupagose
Copy link
Author

No specific loging framework

This is my loging config

builder.Logging.ClearProviders();
builder.Logging.AddConsole();
builder.Logging.AddDebug();
builder.Logging.AddSystemdConsole();
builder.Logging.SetMinimumLevel(LogLevel.Error);
builder.Logging.AddFilter("Default",LogLevel.Error);
builder.Logging.AddFilter("GraphQL", LogLevel.Error);
builder.Logging.AddFilter("GraphQL.Client.Http", LogLevel.Error);

I added Graphql trying to avoid that logs but nothing happens, due this I added this too to my appsettings.json

"Logging": {
"LogLevel": {
"Default": "Error",
"Microsoft.AspNetCore": "Error",
"EmausCommunities.Code.DifusionService": "Error",
"GraphQL": "Error",
"GraphQL.Client": "Error",
"GraphQL.Client.Http": "Error"
}
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jupagose @rose-a and others