Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Replace logging infrastructure with Log4j
- Remove the existing logging infrastructure and replace it with the Log4j Scala API. Log4j Scala API and Log4j API are added as dependencies. Log4j Core is added as a test dependency and a CLI dependency. Users of the Daffodil API are expected to manually add log4j-core or some other Log4j implementation to enable logging - Distribute a Log4j configuration with the CLI to maintain a similar log outut as with the previous implementation - The Scala/Java API logging functions are deprecated and are now no-ops. The functions were not thread safe and could lead to random test failures. Logging tests are removed--we simply use the API and rely on Log4j testing for correctness - We no longer have the different log levels as before, we know just have error, warn, info, debug, and trace - Modify .sh and .bat files to be consistent and add a more clear way to set default java options that can be overridden by the user if needed - Minor refactor of UDF to improve logging and allow warn+ignore provider loading errors DAFFODIL-2510
- Loading branch information
1 parent
2c71cb2
commit 51b814e5b82f6d103e9d52ff22a0661e0d7c8884
Showing
82 changed files
with
632 additions
and
1,882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<Configuration> | ||
<Appenders> | ||
<Console name="STDERR" target="SYSTEM_ERR"> | ||
<PatternLayout pattern="[%p{lowerCase=true}] %m%n"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="WARN"> | ||
<AppenderRef ref="STDERR"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.