www.daniel-hirscher.de Daniel Hirscher

Log4j Quick Reference Card Priorities Level ALL TRACE DEBUG INFO WARN ERROR FATAL OFF

Description Output of all messages Detailed Debugging Debugging (Method xyz called with param abc …) General information (Program started/ended, connected to host foo, calculation took n seconds) Unexpected situation Error (Exception caught) Critical error, program stops Logging is deactivated

Usage: log4j.rootLogger=Level, Appender, Appender, … log4j.logger.NameOfLogger=Level

Appenders Name ConsoleAppender FileAppender RollingFileAppender DailyRollingFileAppender SyslogAppender NTEventLogAppender SMTPAppender net.SocketAppender net.SocketHubAppender

Writes to Standard Output (Console) File File, creates a new based on file size File, creates a new based on time UNIX Syslog Windows Event-Log E-Mail Socket (client mode) Socket (server mode)

Usage: log4j.appender.Appender=org.apache.log4j.Name

Layouts Name PatternLayout SimpleLayout TTCCLayout HTMLLayout XMLLayout

Description Conversion pattern, see top right Level and message = Time, Thread, Category, Context HTML Table XML

Usage: log4j.appender.Appender.layout=org.apache.log4j.Name

Pattern Layout c category; a.b.c → %c{2} = a.b C fully qualified class name (slow); org.apache.xyz.SomeClass → %C{1} = SomeClass d date; %d{HH:mm:ss,SSS}, %d{ABSOLUTE}, %d{DATE}, %d{ISO8601} F file name (extremly slow) l location (extremly slow) L line number (extremly slow) % percent sign

m M n p r t x X

message method name (extremly slow) line separator; \n or \r\n priority milliseconds from layout construction thread name nested diagnostic context of thread mapped diagnostic context of thread; %X{key}

Format Modifier Modifier %20c %­20c %.30c %20.30c

left justify false true n/a false

min. width 20 20 none 20

max. width none none 30 30

%­20.30c

true

20

30

Comment Left pad with spaces if content is less than 20 characters long. Right pad with spaces if content is less than 20 characters long. Truncated from the beginning if content is longer than 30 characters. Left pad with spaces if content is shorter than 20 characters. Truncate from the beginning if content is longer than 30 characters. Right pad with spaces if content is shorter than 20 characters. Truncate from the beginning if content is longer than 30 characters.

Example log4j.rootLogger=WARN, stdout, logfile, socket log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%­5p [%­4t] %­25.25c %m%n log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4j.appender.logfile.File=${java.io.tmpdir}/myapp.log log4j.appender.logfile.MaxFileSize=512KB log4j.appender.logfile.MaxBackupIndex=3 log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d %r [%t] %­5p %c %x ­ %m%n log4j.appender.socket=org.apache.log4j.net.SocketHubAppender log4j.appender.socket.port=10005 log4j.appender.socket.locationInfo=true log4j.logger.com.my.app=DEBUG

Log4j Quick Reference Card - GitHub

log4j.appender.socket.port=10005 log4j.appender.socket.locationInfo=true log4j.logger.com.my.app=DEBUG. Level. Description. ALL. Output of all messages.

231KB Sizes 22 Downloads 329 Views

Recommend Documents

Go Quick Reference Go Quick Reference Go Quick Reference - GitHub
Structure - Package package mylib func CallMeFromOutside. Format verbs. Simpler than Cās. MOAR TABLE package anothermain import (. "fmt". ) func main() {.

NetBSD reference card - GitHub
To monitor various informations of your NetBSD box you ... ifconfig_if assigns an IP or other on that network in- ... pkg_admin fetch-pkg-vulnerabilities download.

LIKWID | quick reference - GitHub
likwid-memsweeper Sweep memory of NUMA domains and evict cache lines from the last level cache likwid-setFrequencies Control the CPU frequency and ...

Javascript Quick Reference Card - Cheat-Sheets.org
Code Structure var ... //Global variable ... //your code here. }] aName='ExplainThat!'; ..... pathname – the path to the document on the host protocol – the protocol ...

CSS 2.1 Quick Reference Card - Cheat-Sheets.org
Class Selectors:.name – applies to HTML document ... HTML element type such as h1, p, a etc. Selector ... When defining two or more nearly similar rules do this.

OpenCL Quick Reference Card - Khronos Group
for high-performance compute servers, desktop ... cl_int clReleaseProgram (cl_program program) ... cl_int clGetProgramBuildInfo (cl_program program,.

Xcode 7 Visual Reference Card - GitHub
Previous Tab. Run. ⌘ R Run. ⌘ U Test. ⌘ I. Profile. ⇧ ⌘ B Analyze. ⌘ . Stop. ⌘ < Edit Scheme. Debug. ⌘ Y Deactivate Breakpoints. ⌃ ⌘ Y Pause. F6 Step Over.

OpenGL 4.1 API Quick Reference Card - Khronos Group
d - double (64 bits). OpenGL®is the only cross-platform graphics API that enables developers of software for. PC, workstation, and supercomputing hardware to ...

OpenVG 1.1 API Quick Reference Card - Page 1 - Khronos Group
startAngle and angleExtent parameters are given in degrees, ... c(csrc, cdst, αsrc, αdst); Pre-mult alpha form c'(αsrc * csrc, αdst * cdst, αsrc, αdst) = c'(c'src, c'dst, ...

read ePub QuickBooks Pro 2018 Quick Reference Training Card ...
Oct 2, 2017 - Reference Training Card - Laminated Tutorial. Guide Cheat Sheet (Instructions and ... and Vendors; Managing. List Items; Sales Tax;. Inventory ...

OpenGL 4.1 API Quick Reference Card - Khronos Group
OpenGL®is the only cross-platform graphics API that enables developers of software ... For brevity, the OpenGL documentation and this reference may omit the ...

Microsoft Excel 2016 Functions & Formulas Quick Reference Card ...
Click the button below to register a free account and download the file ... laminated card/guide provides explanations and context for many powerful Excel 2016.

OpenGL 4.00 API Quick Reference Card - Khronos Group
Mar 9, 2010 - GL commands are formed from a return type, a name, and optionally up to 4 characters. (or character pairs) from the Command ..... Pixel Transfer Modes [3.7.3, 6.1.3] ...... value: ORDER, COEFF, DOMAIN. Selection [5.2].

SD Card v4.0a.sch - GitHub
Page 1. 2012/11/15 10:50:19 C:\Users\Tobe\Desktop\SD card shield\SD Card Shield v4.0a1\SD Card v4.0a.sch (Sheet: 1/1)

Reference Manual - GitHub
for the simulation of the electron cloud buildup in particle accelerators. 1 Input files .... points of the longitudinal beam profile of sec- ondary beams.

Oolite Reference Sheet - GitHub
will shut down, requiring a cool-down period before it ... 10 Fuel Scoop ... V2 & Creative Commons License: BY - NC - SA 3.0 Oolite Website: http:/www. ..... A discontinued fighter design finding a new life in the professional racing circuit.

J1a SwapForth Reference - GitHub
application. After installing the icestorm tools, you can .... The SwapForth shell is a Python program that runs on the host PC. It has a number of advantages over ...

GABotS Reference Manual - GitHub
Apr 9, 2002 - MainWindow (Main widget for the GABots app). 23. Random ..... Main class for simple Genetic Algorithm used in the program. ز ذظ .

Quick Reference Guide* * * * * * * * * * * * * * * * * * * * * Nutrition and ...
Fruit seeds and cores. ○ Chocolate. ○ Onions. ○. ○ Tomatoes(plants are toxic )ripe tomatoes small amounts fine. ○ Heavy wheat and flour based foods.

Quick Reference Guide.pdf
o Contact the ThunderRidge HS Portal Manager at [email protected]. Student Portal Account and Student Moodle Account. Username = Last Name ...

CustomGuide Quick Reference
To Delete a Message: Select the message and ... http://login.customguide.com/HancockCountySchools ... from the contextual menu, and select Clear Flag.

Z Reference Card - Mike Spivey
R+. R \plus. Transitive closure. R∗. R \star. Reflexive–trans. closure. Functions f (x) f(x). Function application. (λ x : T | P • E). (\lambda ...) Lambda-expression. X §.