@Deprecated public class LogStream extends PrintStream
LogStream
提供了一种用于记录对监控系统的用户可能感兴趣的错误的机制。
Modifier and Type | Field and Description |
---|---|
static int |
BRIEF
已弃用
日志级别常量(简短日志记录)。
|
static int |
SILENT
已弃用
日志级别常量(无日志记录)。
|
static int |
VERBOSE
已弃用
日志级别常量(详细日志记录)。
|
out
Modifier and Type | Method and Description |
---|---|
static PrintStream |
getDefaultStream()
已弃用
没有替换
|
OutputStream |
getOutputStream()
已弃用
没有替换
|
static LogStream |
log(String name)
已弃用
没有替换
|
static int |
parseLevel(String s)
已弃用
没有替换
|
static void |
setDefaultStream(PrintStream newDefault)
已弃用
没有替换
|
void |
setOutputStream(OutputStream out)
已弃用
没有替换
|
String |
toString()
已弃用
没有替换
|
void |
write(byte[] b, int off, int len)
已弃用
没有替换
|
void |
write(int b)
已弃用
没有替换
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError
write
public static final int SILENT
public static final int BRIEF
public static final int VERBOSE
@Deprecated public static LogStream log(String name)
name
- 标识所需的LogStream的名称
@Deprecated public static PrintStream getDefaultStream()
setDefaultStream(java.io.PrintStream)
@Deprecated public static void setDefaultStream(PrintStream newDefault)
newDefault
- 新的默认日志流
getDefaultStream()
@Deprecated public OutputStream getOutputStream()
setOutputStream(java.io.OutputStream)
@Deprecated public void setOutputStream(OutputStream out)
out
- 此日志的新输出流
getOutputStream()
@Deprecated public void write(int b)
write
在类别
PrintStream
b
- 要写入的字节
PrintStream.print(char)
,
PrintStream.println(char)
@Deprecated public void write(byte[] b, int off, int len)
write
在类别
PrintStream
b
- 一个字节数组
off
- 从哪个字节开始的偏移量
len
- 要写入的字节数
FilterOutputStream.write(int)
@Deprecated public String toString()
@Deprecated public static int parseLevel(String s)
s
- 记录级别的名称(例如,“SILENT”,“
s
”,“VERBOSE”)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.