LOG4J Learning Notes
by Heavyz
2003-04-15
Turn from: http://zooo.51.net/heavyz_cs/notebook/log4j.html
--------------------------------------------------------------------------------
LOG4J Home: http://jakarta.apache.org/log4j
--------------------------------------------------------------------------------
Index
Class diagram of the
--------------------------------------------------------------------------------One: Introduction to LOG4J components
A: log4j three important components--loggers, appenders, Layouts
These three components work together to make it possible for developers to record information based on categories and levels of information, and to be able to run the control of information logging in a way that has been stor
Oracle Database migration-basic and oracle database migrationOracle Database migration-Basics
As a developer, We must master database knowledge. However, the company's database is maintained by a dedicated DBA. Generally, we provide an environment address, and then we write crud SQL. In addition, the company's product requirements can be cross-data sources, so that generally do not care about the operations
of live migration.
HOST PROJECT cpu mem(mb) disk(gb)openstack2-c2 16 32232 878 > openstack2-c2 admin 1 2048 20
For live migration,
Nova-manage instances live_migration ec2-id (I-xxxx) destination-host-name.
OnceThis command is executed, admins will check the status throughEuca-describe-instances. The status is changed from 'running''Mixing', and changed to 'running' when live
Java 9 migration notes summary, Java 9 migration issues Summary
Collation
This article mainly studies some precautions for migrating data to Java 9.
Migration type
1. The code is not modularized. First, the code is migrated to JDK 9 to make good use of the APIs of JDK 9.
2. Code is also modularized for Migration
Notes
Data Consistency Verification for data migration and data migration
It is useful to perform some necessary verification during database migration, for example, whether the number of data items before and after migration is consistent or whether the data is consistent. What should I do at this time? The number of verifi
The log4j. properties configuration file is described as follows:
# Set root logger level to debug and its only appender to A1
# Log4j has five levels of logger
# Fatal 0
# Error 3
# Warn 4
# INFO 6
# Debug 7
Configure the root logger with the Syntax:
# Log4j. rootlogger = [level], appendername, appendername ,...
Log4j
The log4j. properties configuration file is described as follows:
# Set root logger level to debug and its only appender to A1
# Log4j has five levels of logger
# Fatal 0
# Error 3
# Warn 4
# INFO 6
# Debug 7
Configure the root Logger with the Syntax:
# Log4j. rootlogger = [level], appendername, appendername ,...
Log4j
Log processing is a necessary feature in every project development, and logs are running information that is recorded in other files while the program is running.
There are three purposes for exporting logs in an application:
1 Monitor the change of variables in the code, periodically record the data to the file for other applications for statistical analysis work.
2 tracking code run time trajectory, as the basis for future audits.
3 acts as a debugger in an integrated development environment,
From: http://dingjun1.javaeye.com/blog/413993
Reprinted:
Http://wangjc-opal.javaeye.com/blog/309924
There is no doubt about the powerful functions of log4j, but in actual applications, it is inevitable that an independent log file needs to be output for a function. How can we separate the required content from the original log, what about creating a separate log file? In fact, you can easily implement this function with a slight configuration based o
-- By Blues (zhaochaohua@sina.com)
Part 1 Introduction
The advantages of log4j are:
1. By modifying the configuration file, you can determine where the log information is output (console, file,...) and whether it is output.
In this way, you can print detailed log information in the system development phase to track the system operation, and close the log output after the system is stable, so that while tracking the system operation, also reduces the a
The original Web project was run on Weblogic8, but now the requirement is to run into JBOSS5, preparing for a later migration to a later version of JBossBecause I did not study WebLogic, so the previous steps have been carried out by others, in the half of the time, due to certain circumstances, and gave me to complete.At this point he encountered two main problems, the following is the main log:2016-03-31 03:36:59,787 ERROR [org.apache.catalina.core.
Cocos2d-x provides the source code for the Libnetwork library, and it also provides visual Studio 2012 project file Libnetwork.vcxproj for the Libnetwork library, which makes porting easier.Tip Some cocos2d-x engineering templates in the solution, there are already libnetwork libraries, the process described in this section is not required.Since the bottom of the Libnetwork library is dependent on the Libcurl library, we will first migrate the Libcurl library as described in the previous section
to the runtime environment when they are compiled. Please set up each of these three dynamic link library files individually.Setting file PropertiesIf the above three steps are completed successfully, we can run the test. The migration of Libcurl Library is very representative, it belongs to the header files and library files with each platform, and there is no source file situation. We can all take this as a transplant for everything.For more inform
Database downtime migration oracle10g instance and oracle10g migration1. Operation 1.1 of the original database view original configuration 1.1.1 view User Permissions
View user system permissions:
SQL> select * from user_sys_privs;
View User Roles
SQL> select * from user_role_privs;
View the permissions of the current session
SQL> select * from session_privs;
PRIVILEGE
----------------------------------------
CREATE SESSION
UNLIMITED TABLESPACE
CREAT
CoreData database migration operations and coredata database migration
The procedure for migrating the CoreData database is based on Xcode7.
1. Add a new database. Select the current database version: Editor-> Add Model Verson to create a new database version.
2. command + N to create a ing model. iOS-> CoreData-> Mapping Model-> Next, select the old database version-> Next, select the new database ver
can be obtained (which is the inverse of the eigenvalue matrix), and this c is the required composite transformation matrix.For each image to be processed, there are different transition matrix C. The values of the lαβ color space are calculated by using the adaptive processing of color images and shape images. Instead of using a fixed c to process all the images. Although this algorithm pays a little price in the computation time, the adaptive method accords with the color distribution of the
Blog migration !!!!!!!!!!!!!!!!!!!!!!!!, Blog migration
My new blog address: iOS @ confused little bookboy
CSDN has been stopped since then. Welcome to my new address.
I will not move the article here. If you have time, consider it. It is busy now.
The new blog address also has a link here, along with links to my github and Sina Weibo (the code can be uploaded to github at last ).
Blog bus
Db2v8 data migration and db2v8 migration
Db2 data migration
Version: v8.1
Task: get data from production to test environment
Problems encountered during handling:
1. Character Set problems. The source database code page is gbk, and the target database code page is uft-8
Solution: format conversion during export or import
Note: In the gbk library, a Chinese chara
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.