PromucFlow_constructor/app/server/appsmith-plugins
Anna Hariprasad 7aae152dee
fix: logger-not-working-in-plugins (#36231)
Fixes #36073 

Hi @NilanshBansal 

**Issue :**

**Missing Logging Implementation :**

- Without a logging implementation (such as SLF4J Simple or Logback) in
the project's classpath, the logging statements in the plugins cannot be
executed.
- As a result, no log output is being printed to the terminal.

**Solution :**

The solution is to add a logging implementation to the plugins parent
pom. In this case, you can add the slf4j-simple dependency to your
pom.xml file. This will provide a simple logging implementation that
will output log statements to the console.

```
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
</dependency>

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.36</version> 
</dependency>
```
**Explanation:**

- slf4j-api provides the SLF4J API, which is the interface for logging.
  provides the SLF4J API, which is the interface for logging.
- slf4j-simple provides a simple implementation of the SLF4J API, which
is responsible for actually printing the log messages to the console.

**Screenshots :** 

Amazon S3 Plugin and Postgres Plugin 

![image](https://github.com/user-attachments/assets/d3e90b96-2b02-493d-8ffa-44e2aa348fc1)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced logging capabilities with the integration of SLF4J API and
SLF4J Simple implementations.

- **Improvements**
- Improved log management and output formatting for better monitoring
and debugging across various plugins, transitioning from standard output
to structured logging.
- Refined logging practices in multiple plugins to support better
maintainability and performance.
- Removed method for console logging from the Stopwatch class to
streamline logging practices.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-17 10:47:58 +01:00
..
amazons3Plugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
anthropicPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
appsmithAiPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
arangoDBPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
awsLambdaPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
databricksPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
dynamoPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
elasticSearchPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
firestorePlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
googleAiPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
googleSheetsPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
graphqlPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
jsPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
mongoPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
mssqlPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
mysqlPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
openAiPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
oraclePlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
postgresPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
redisPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
redshiftPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
restApiPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
saasPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
smtpPlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
snowflakePlugin fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00
pom.xml fix: logger-not-working-in-plugins (#36231) 2024-09-17 10:47:58 +01:00