Skip to content

Commit

Permalink
GlassFish log view manager bundle missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jGauravGupta committed Mar 3, 2019
1 parent 5f7d848 commit 7f3b0b4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private OutputWriter getWriter(boolean error) {
}

private final Locale logLocale = getLogLocale();
private final String logBundleName = getLogBundle();
private static final String logBundleName = "org.netbeans.modules.glassfish.common.resources.logging";
private final String localizedWarning = getLocalized(Level.WARNING.getName());
private final String localizedSevere = getLocalized(Level.SEVERE.getName());
private final Map<String, String> localizedLevels = getLevelMap();
Expand All @@ -279,10 +279,6 @@ private Locale getLogLocale() {
return Locale.getDefault();
}

private String getLogBundle() {
return Level.INFO.getResourceBundleName();
}

private String getLocalized(String text) {
ResourceBundle bundle = ResourceBundle.getBundle(logBundleName, logLocale);
String localized = bundle.getString(text);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.

# Localizations for Level names.
ALL=All
SEVERE=Severe
WARNING=Warning
INFO=Info
CONFIG= Config
FINE=Fine
FINER=Finer
FINEST=Finest
OFF=Off

0 comments on commit 7f3b0b4

Please sign in to comment.