class SyslogFormatter extends Formatter
- Alphabetic
- By Inheritance
- SyslogFormatter
- Formatter
- Formatter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SyslogFormatter(hostname: String = NetUtil.getLocalHostName(), serverName: Option[String] = None, useIsoDateFormat: Boolean = true, priority: Int = SyslogHandler.PRIORITY_USER, timezone: Option[String] = None, truncateAt: Int = 0, truncateStackTracesAt: Int = ...)
- hostname
Hostname to prepend to log lines.
- serverName
Optional server name to insert before log entries.
- useIsoDateFormat
Use new standard ISO-format timestamps instead of old BSD-format?
- priority
Priority level in syslog numbers.
- timezone
Should dates in log messages be reported in a different time zone rather than local time? If set, the time zone name must be one known by the java
TimeZone
class.- truncateAt
Truncate log messages after N characters. 0 = don't truncate (the default).
- truncateStackTracesAt
Truncate stack traces in exception logging (line count).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
calendar: GregorianCalendar
Calendar to use for time zone display in date-time formatting.
Calendar to use for time zone display in date-time formatting.
- Definition Classes
- Formatter
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dateFormat: DateFormat
Return the date formatter to use for log messages.
Return the date formatter to use for log messages.
- Definition Classes
- SyslogFormatter → Formatter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
format(record: java.util.logging.LogRecord): String
- Definition Classes
- Formatter → Formatter
-
def
formatLevelName(level: java.util.logging.Level): String
Return the string representation of a given log level's name
Return the string representation of a given log level's name
- Definition Classes
- Formatter
-
def
formatMessage(arg0: java.util.logging.LogRecord): String
- Definition Classes
- Formatter
-
def
formatMessageLines(record: java.util.logging.LogRecord): Array[String]
- Definition Classes
- Formatter
-
def
formatName(record: java.util.logging.LogRecord): String
Returns the formatted name of the node given a LogRecord
Returns the formatted name of the node given a LogRecord
- Definition Classes
- Formatter
-
def
formatPrefix(level: java.util.logging.Level, date: String, name: String): String
Return the string to prefix each log message with, given a log level, formatted date string, and package name.
Return the string to prefix each log message with, given a log level, formatted date string, and package name.
- Definition Classes
- SyslogFormatter → Formatter
-
def
formatText(record: java.util.logging.LogRecord): String
Return formatted text from a java LogRecord.
Return formatted text from a java LogRecord.
- Definition Classes
- Formatter
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getHead(arg0: java.util.logging.Handler): String
- Definition Classes
- Formatter
-
def
getTail(arg0: java.util.logging.Handler): String
- Definition Classes
- Formatter
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- val hostname: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lineTerminator: String
Return the line terminator (if any) to use at the end of each log message.
Return the line terminator (if any) to use at the end of each log message.
- Definition Classes
- SyslogFormatter → Formatter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
prefix: String
- Definition Classes
- Formatter
- val priority: Int
- val serverName: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
timezone: Option[String]
- Definition Classes
- Formatter
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
truncateAt: Int
- Definition Classes
- Formatter
-
val
truncateStackTracesAt: Int
- Definition Classes
- Formatter
-
def
truncateText(message: String): String
Truncates the text from a java LogRecord, if necessary
Truncates the text from a java LogRecord, if necessary
- Definition Classes
- Formatter
-
val
useFullPackageNames: Boolean
- Definition Classes
- Formatter
- val useIsoDateFormat: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )