Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

output to mysql missing datas #5

Open
wants to merge 342 commits into
base: BRANCH_1_3_ABANDONED
Choose a base branch
from
Open

Conversation

091313422
Copy link

@091313422 091313422 commented Aug 12, 2016

i config log4j to mysql,but when night i find it cannot output to mysql,i observed in the night logs becomes less,how can i resolve this problem
my config is:
log4j.logger.webService-mysql=INFO,webService-mysql
log4j.additivity.webService-mysql=false
log4j.appender.webService-mysql.BufferSize=10
log4j.appender.webService-mysql=org.apache.log4j.jdbc.JDBCAppender
log4j.appender.webService-mysql.URL=XXXX
log4j.appender.webService-mysql.driver=com.mysql.jdbc.Driver
log4j.appender.webService-mysql.user=XXX
log4j.appender.webService-mysql.password=XXX
log4j.appender.webService-mysql.sql=INSERT INTO test (sss,ss,content,ss) VALUES (3,'%d{dd-MM-yyy HH:mm:ss}', '%m',unix_timestamp());
log4j.appender.webService-mysql.layout=org.apache.log4j.PatternLayout
log4j.appender.webService-mysql.layout.ConversionPattern=%d{dd-MM-yyy HH:mm:ss} %m%n

Ceki Gulcu and others added 30 commits November 1, 2004 17:08
Level.getLevel(...) quivalents.

- Deprecated Priority.FATAL as it was replaced by Logger.FATAL.
- Deprecated Priority.ERROR as it was replaced by Logger.ERROR.
- Deprecated Priority.WARN  as it was replaced by Logger.WARN.
- Deprecated Priority.INFO  as it was replaced by Logger.
- Deprecated Priority.DEBUG as it was replaced by Logger.DEBUG.



PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@310830 13f79535-47bb-0310-9956-ffa450edef68
- 1.2 site build now depends on logging-site as does log4j on CVS HEAD.

- Small doc corrections.


PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@310842 13f79535-47bb-0310-9956-ffa450edef68
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311328 13f79535-47bb-0310-9956-ffa450edef68
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311329 13f79535-47bb-0310-9956-ffa450edef68
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311331 13f79535-47bb-0310-9956-ffa450edef68
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311332 13f79535-47bb-0310-9956-ffa450edef68
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311333 13f79535-47bb-0310-9956-ffa450edef68
Modified clean target to remove entire dist dir, not just dist/classes.


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311366 13f79535-47bb-0310-9956-ffa450edef68
Changes javac to use target attribute of 1.1.  Per the Ant documentation: "Generate class files for specific VM version (e.g., 1.1 or 1.2). Note that the default value depends on the JVM that is running Ant. In particular, if you use JDK 1.4+ the generated classes will not be usable for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1 (which is the default value for JDK 1.1 to 1.3). We highly recommend to always specify this attribute."


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311383 13f79535-47bb-0310-9956-ffa450edef68
Updated plan.xml to detail approved release roadmap.


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@311388 13f79535-47bb-0310-9956-ffa450edef68
Curtis William Arnold and others added 27 commits June 21, 2007 00:24
…matted events

- added locationInfo support to multicastappender
(note: no support for MDC or event properties in XMLLayout/1.2 log4j.dtd, so application/hostname properties won't be sent for udp/multicastappender)

- updated logfilepatternreceiver to support tailing over VFS (VFSlogfilepatternreceiver commit will follow shortly)

tested udpappender/receiver, socketappender/receiver, logfilepatternreceiver, xmlsocketreceiver receiving events from java.util.logging sockethandler


git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch@563405 13f79535-47bb-0310-9956-ffa450edef68
@hubot hubot deleted the v1_2-branch branch April 28, 2017 16:27
@asfgit asfgit restored the v1_2-branch branch April 28, 2017 16:51
@lsimons
Copy link

lsimons commented Dec 17, 2021

I think this is intended as a request for support instead of a PR. Log4J 1.2 is end-of-life, the suggestion is to upgrade to 2.x. See https://logging.apache.org/log4j/1.2/ for more information! The PR should be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants