public class TTSLog extends Object
Modifier and Type | Class and Description |
---|---|
class |
TTSLog.Entry |
static class |
TTSLog.Error |
static class |
TTSLog.ErrorCode |
Constructor and Description |
---|
TTSLog() |
TTSLog(org.slf4j.Logger slf4jLogger) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneralError(TTSLog.ErrorCode errcode,
String message) |
void |
addGeneralError(TTSLog.ErrorCode errcode,
String message,
Throwable cause) |
Set<Map.Entry<String,TTSLog.Entry>> |
getEntries() |
TTSLog.Entry |
getOrCreateEntry(String sentenceId)
Supposed to be called within a single-threaded context
|
TTSLog.Entry |
getWritableEntry(String sentenceId)
Can be called within a multi-threaded context once all the calls to
getOrCreateEntry() are done.
|
Collection<TTSLog.Error> |
readonlyGeneralErrors() |
public TTSLog.Entry getOrCreateEntry(String sentenceId)
public TTSLog.Entry getWritableEntry(String sentenceId)
public Set<Map.Entry<String,TTSLog.Entry>> getEntries()
public void addGeneralError(TTSLog.ErrorCode errcode, String message)
public void addGeneralError(TTSLog.ErrorCode errcode, String message, Throwable cause)
public Collection<TTSLog.Error> readonlyGeneralErrors()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.