R# I/O redirect and interface for Rserve http server
RContentOutput
00 Remarks
a TextWriter sub class object.
01 Syntax
SMRUCC.Rsharp.Runtime.RContentOutput
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| openSink | 1 | open a new log file session |
| LoggingDriver | 1 | just write the message text data |
| WriteLine | 2 | |
| Write | 3 | |
| splitLogging | 1 | |
| closeSink | 1 | |
| Flush | 1 | |
| WriteStream | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| isLogOpen | 1 | check of the RContentOutput.logfile which is opened by base.sink()) function is existed or not? |
| env | 1 | |
| recommendType | 1 | |
| stream | 1 | |
| Encoding | 1 |
04 Fields
05 Members
openSink(
String, Boolean, Boolean)open a new log file session
Parameters
| Name | Type | Description |
|---|---|---|
logfile | String | - |
split | Boolean | - |
append | Boolean | - |
LoggingDriver(
String, String, MSG_TYPES)just write the message text data
Remarks
use Constants.vbBack for indicates that use the write function instead of writeline.
Parameters
| Name | Type | Description |
|---|---|---|
header$ | String | - |
message$ | String | - |
level | MSG_TYPES | - |
WriteLine(
String)Writes a string followed by a line terminator to the text string or stream.
Parameters
| Name | Type | Description |
|---|---|---|
message | String | The string to write. If value is null, only the line terminator is written. |
Write(
String, String)xml/json/csv, etc...
Parameters
| Name | Type | Description |
|---|---|---|
message | String | - |
content_type$ | String | - |
isLogOpen
check of the RContentOutput.logfile which is opened by base.sink() function is existed or not?
stdout
usually be the console standard output
logfile
save the print content to the *.log local file
env
recommendType
stream
Encoding
splitLogging(
Stream)closeSink()
Flush()
WriteLine()
Write(
String)WriteStream(
Action(Of Stream), String)