Skip to content

Instantly share code, notes, and snippets.

@Atry
Created March 3, 2012 15:31
Show Gist options
  • Save Atry/1966634 to your computer and use it in GitHub Desktop.
Save Atry/1966634 to your computer and use it in GitHub Desktop.
digraph Java有多少种方式决定Logging的去处 {
graph [ tooltip = "神马轻量级Logging框架都是骗人的" ]
log4j [ tooltip = "我很快,而且支持很多种输出目标哦" ]
slf4j -> "logback, jdk14, ..."
slf4j -> log4j
log4j -> "org.apache.log4j.ConsoleAppender"
log4j -> "org.apache.log4j.FileAppender"
log4j -> "org.apache.log4j.net.SyslogAppender"
log4j -> "org.apache.log4j.net.SocketAppender"
log4j -> "其他Appender..."
"org.apache.log4j.FileAppender" -> 文件
"org.apache.log4j.net.SocketAppender" -> TCP流
"org.apache.log4j.ConsoleAppender" -> "java.lang.System.out/err"
"java.lang.System.out/err" -> "stdout/stderr"
"java.lang.System.out/err" -> "定制的java.io.PrintStream" [ label = "System.setOut()/setErr()" ]
"定制的java.io.PrintStream" -> TCP流
"定制的java.io.PrintStream" -> GZip流
"定制的java.io.PrintStream" -> 内存缓冲区
"定制的java.io.PrintStream" -> 文件
"定制的java.io.PrintStream" -> "其他定制的java.io.PrintStream..."
"stdout/stderr" -> 控制台
控制台 -> tty
控制台 -> pty
pty -> "X Window"
"X Window" -> xterm
"X Window" -> "gnome-terminal"
"stdout/stderr" -> 文件 [ label = 重定向 ]
"stdout/stderr" -> "/dev/null" [ label = 重定向 ]
文件 -> ext3
文件 -> ext4
文件 -> FUSE
FUSE -> FuseSmb
FuseSmb -> "Windows网上邻居"
FUSE -> SSHFS
SSHFS -> "某Linux服务器"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment