Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 8ecc0fe

Browse files
committed
cleaning up
1 parent 5770674 commit 8ecc0fe

File tree

14 files changed

+39
-211
lines changed

14 files changed

+39
-211
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
target
2+
.idea
3+
*iml

TEST/META-INF/MANIFEST.MF

Lines changed: 0 additions & 3 deletions
This file was deleted.

TEST/pom.xml

Lines changed: 0 additions & 118 deletions
This file was deleted.

TEST/src/test/java/weblogic/logging/exporter/config/MapUtilsTest.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

TEST/test.jar

-2.1 KB
Binary file not shown.

src/main/java/weblogic/logging/exporter/LogExportHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018 Oracle and/or its affiliates
2+
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
55
*/

src/main/java/weblogic/logging/exporter/Result.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018 Oracle and/or its affiliates
2+
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
55
*/
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018 Oracle and/or its affiliates
2+
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
55
*/
@@ -8,7 +8,6 @@
88

99
import java.io.File;
1010
import java.util.logging.Logger;
11-
import weblogic.logging.LoggerNotAvailableException;
1211
import weblogic.logging.LoggingHelper;
1312
import weblogic.logging.exporter.config.Config;
1413

@@ -19,27 +18,28 @@ public class Startup {
1918
public static void main(String argv[]) {
2019
System.out.println("======================= Weblogic Logging Exporter Startup class called");
2120
try {
22-
//Logger logger = LoggingHelper.getDomainLogger();
21+
// Logger logger = LoggingHelper.getDomainLogger();
2322
Logger logger = LoggingHelper.getServerLogger();
2423

2524
/*
26-
We will read from the system variable for the location and name of the configuration file.
27-
If the environment variable is not set, will use the default file under Domain Home Config directory.
28-
If the file doesn't exist, give WARNING, and use default.
29-
It is assumed that when this is integrated to Operator, the system variable will be set.
30-
*/
31-
String fileName = System.getProperty("WEBLOGIC_LOGGING_EXPORTER_CONFIG_FILE", DEFAULT_CONFIG_FILE);
32-
File file = new File (fileName);
25+
We will read from the system variable for the location and name of the configuration file.
26+
If the environment variable is not set, will use the default file under Domain Home Config directory.
27+
If the file doesn't exist, give WARNING, and use default.
28+
It is assumed that when this is integrated to Operator, the system variable will be set.
29+
*/
30+
String fileName =
31+
System.getProperty("WEBLOGIC_LOGGING_EXPORTER_CONFIG_FILE", DEFAULT_CONFIG_FILE);
32+
File file = new File(fileName);
3333
System.out.println("Reading configuration from file name: " + file.getAbsolutePath());
3434
Config config = Config.loadConfig(file);
3535
System.out.println(config);
3636
if (config.getEnabled()) {
3737
logger.addHandler(new LogExportHandler(config));
38-
}else{
39-
System.out.println("Weblogic Logging Exporter is disabled");
38+
} else {
39+
System.out.println("WebLogic Logging Exporter is disabled");
4040
}
4141
} catch (Exception e) {
4242
e.printStackTrace();
4343
}
4444
}
45-
}
45+
}

src/main/java/weblogic/logging/exporter/config/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018 Oracle and/or its affiliates
2+
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
55
*/

src/main/java/weblogic/logging/exporter/config/ConfigurationException.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018 Oracle and/or its affiliates
2+
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
55
*/
@@ -30,5 +30,4 @@ public String getMessage() {
3030
if (!context.isEmpty()) sb.append(" at ").append(String.join(".", context));
3131
return sb.toString();
3232
}
33-
3433
}

0 commit comments

Comments
 (0)