[ 
https://issues.apache.org/jira/browse/AMBARI-26246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906910#comment-17906910
 ] 

Nikita Pande commented on AMBARI-26246:
---------------------------------------

Some references: 
[https://github.com/apache/superset/blob/e51b95ffa8377470ee5495a37ff5ec03b4de1aff/superset-websocket/src/logger.ts#L28]
 
[https://github.com/apache/superset/blob/e51b95ffa8377470ee5495a37ff5ec03b4de1aff/superset-websocket/src/index.ts#L28]
 

[~zrain] thoughts?

> Implement Server-Side Logging for Ambari-Web and Ambari-Admin (Remove 
> console.log)
> ----------------------------------------------------------------------------------
>
>                 Key: AMBARI-26246
>                 URL: https://issues.apache.org/jira/browse/AMBARI-26246
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-admin, ambari-web
>            Reporter: Nikita Pande
>            Priority: Major
>
> Currently, Ambari-Admin and Ambari-Web rely on {{console.log}} for logging, 
> which has several drawbacks:
>  * *Client-Side Logging:* {{console.log}} statements are executed on the 
> client (user's browser) and are not persisted on the server. This means 
> valuable information about errors and application behavior is lost.
>  * *Unsuitable for Production:* {{console.log}} statements should not be used 
> in production environments because:
>  ** Security Concerns: Sensitive information accidentally logged through 
> {{console.log}} could be exposed to unauthorized users.
>  ** Difficulty in Debugging: Logs are not centralized and can be challenging 
> to analyze for debugging purposes.
> *Proposed Solution:*
> This ticket proposes implementing a custom logging solution for Ambari-Admin 
> and Ambari-Web. The new logging system should:
>  * *Server-Side Logging:* Logs should be generated on the server-side and 
> persisted in a centralized location for easier access and analysis.
>  * *Log Levels:* Support different log levels (e.g., debug, info, warn, 
> error) to categorize the severity of logged messages.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to