A message that consists of a log_level and a string payload.
class simple message
implements log message
private log level the level
private string the string
simple message(log level the level, string the string)
this • the level = the level
this • the string = the string
implement log level level()
return the level
implement string to string()
return the string
implement text fragment to text()
if the stringis empty
return base element • new(text libraryBR)
else
return base element • new(text libraryDIV, the string)