Révision 2453
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/MainCorpus.java (revision 2453) | ||
---|---|---|
37 | 37 |
import java.util.Map; |
38 | 38 |
import java.util.Set; |
39 | 39 |
import java.util.UUID; |
40 |
import java.util.logging.Level; |
|
41 | 40 |
|
42 | 41 |
import org.eclipse.core.runtime.IProgressMonitor; |
43 | 42 |
import org.eclipse.osgi.util.NLS; |
... | ... | |
174 | 173 |
|
175 | 174 |
@Override |
176 | 175 |
public String getComputingStartMessage() { |
177 |
if (Log.isLoggingFine()) { |
|
176 |
if (Log.isLoggingFineLevel()) {
|
|
178 | 177 |
return TXMCoreMessages.bind(SearchEngineCoreMessages.info_computingCorpusP0, this.getName()); |
179 | 178 |
} |
180 | 179 |
else { |
... | ... | |
185 | 184 |
|
186 | 185 |
@Override |
187 | 186 |
public String getComputingDoneMessage() { |
188 |
if (Log.isLoggingFine()) { |
|
187 |
if (Log.isLoggingFineLevel()) {
|
|
189 | 188 |
return super.getComputingDoneMessage(); |
190 | 189 |
} |
191 | 190 |
else { |
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 2453) | ||
---|---|---|
1410 | 1410 |
this.parent = null; |
1411 | 1411 |
|
1412 | 1412 |
// log |
1413 |
if (this.isVisible() || Log.isLoggingFine()) { |
|
1413 |
if (this.isVisible() || Log.isLoggingFineLevel()) {
|
|
1414 | 1414 |
Log.info(TXMCoreMessages.bind(TXMCoreMessages.info_p0P1Deleted, this.getResultType(), this.getSimpleName())); |
1415 | 1415 |
} |
1416 | 1416 |
|
... | ... | |
2370 | 2370 |
} |
2371 | 2371 |
|
2372 | 2372 |
// log |
2373 |
if (!this.getComputingStartMessage().isEmpty() && (this.isVisible() || Log.isLoggingFine())) { |
|
2373 |
if (!this.getComputingStartMessage().isEmpty() && (this.isVisible() || Log.isLoggingFineLevel())) {
|
|
2374 | 2374 |
// console log |
2375 | 2375 |
Log.info(this.getComputingStartMessage()); |
2376 | 2376 |
|
... | ... | |
2493 | 2493 |
|
2494 | 2494 |
|
2495 | 2495 |
// log |
2496 |
if (!skipComputing && !this.getComputingDoneMessage().isEmpty() && (this.isVisible() || Log.isLoggingFine())) { |
|
2496 |
if (!skipComputing && !this.getComputingDoneMessage().isEmpty() && (this.isVisible() || Log.isLoggingFineLevel())) {
|
|
2497 | 2497 |
// console log |
2498 | 2498 |
Log.info(this.getComputingDoneMessage()); |
2499 | 2499 |
|
tmp/org.txm.utils/src/org/txm/utils/logger/Log.java (revision 2453) | ||
---|---|---|
416 | 416 |
* |
417 | 417 |
* @return |
418 | 418 |
*/ |
419 |
public static boolean isLoggingFine() { |
|
419 |
public static boolean isLoggingFineLevel() {
|
|
420 | 420 |
return Level.FINE.intValue() >= Log.getLevel().intValue(); |
421 | 421 |
} |
422 | 422 |
|
Formats disponibles : Unified diff