Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
1d182fdf
Commit
1d182fdf
authored
16 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
minor: - Reformat the 'log.xml' files and use more actual examples for logger.
SVN: 9107
parent
b2d70d64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/dist/etc/log.xml
+94
-91
94 additions, 91 deletions
openbis/dist/etc/log.xml
with
94 additions
and
91 deletions
openbis/dist/etc/log.xml
+
94
−
91
View file @
1d182fdf
...
@@ -3,112 +3,115 @@
...
@@ -3,112 +3,115 @@
<log4j:configuration
xmlns:log4j=
'http://jakarta.apache.org/log4j/'
>
<log4j:configuration
xmlns:log4j=
'http://jakarta.apache.org/log4j/'
>
<appender
name=
"DEFAULT"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<appender
name=
"DEFAULT"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<param
name=
"File"
value=
"logs/genericopenbis_log.txt"
/>
<param
name=
"File"
value=
"logs/genericopenbis_log.txt"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<!--
<!--
// %d: outputs the date of the logging event.
// %d: outputs the date of the logging event.
// %-5p: priority (i.e. level) of the logging event should be left justified to
// %-5p: priority (i.e. level) of the logging event should be left justified to
// a width of five characters.
// a width of five characters.
// %t: outputs the name of the thread that generated the logging event.
// %t: outputs the name of the thread that generated the logging event.
// %c: outputs the category of the logging event.
// %c: outputs the category of the logging event.
// %m: outputs the application supplied message associated with the logging event.
// %m: outputs the application supplied message associated with the logging event.
// %X: outputs the MDC (mapped diagnostic context) associated with the thread that generated the logging event.
// %X: outputs the MDC (mapped diagnostic context) associated with the thread that generated the logging event.
-->
-->
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"AUTH"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<appender
name=
"AUTH"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<param
name=
"File"
value=
"logs/openbis_auth_log.txt"
/>
<param
name=
"File"
value=
"logs/openbis_auth_log.txt"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"USAGE"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<appender
name=
"USAGE"
class=
"org.apache.log4j.DailyRollingFileAppender"
>
<param
name=
"File"
value=
"logs/openbis_usage_log.txt"
/>
<param
name=
"File"
value=
"logs/openbis_usage_log.txt"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<param
name=
"DatePattern"
value=
"'.'yyyy-MM-dd"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t]%X{sessionInfo} %c - %m%n"
/>
</layout>
</layout>
</appender>
</appender>
<appender
name=
"STDOUT"
class=
"org.apache.log4j.ConsoleAppender"
>
<appender
name=
"STDOUT"
class=
"org.apache.log4j.ConsoleAppender"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t] %c - %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t] %c - %m%n"
/>
</layout>
</layout>
</appender>
</appender>
<!--
<!--
// Defined but not used right now.
// Defined but not used right now.
-->
-->
<appender
name=
"NULL"
class=
"org.apache.log4j.varia.NullAppender"
/>
<appender
name=
"NULL"
class=
"org.apache.log4j.varia.NullAppender"
/>
<appender
name=
"EMAIL"
class=
"org.apache.log4j.net.SMTPAppender"
>
<appender
name=
"EMAIL"
class=
"org.apache.log4j.net.SMTPAppender"
>
<param
name=
"BufferSize"
value=
"512"
/>
<param
name=
"BufferSize"
value=
"512"
/>
<param
name=
"SMTPHost"
value=
"localhost"
/>
<param
name=
"SMTPHost"
value=
"localhost"
/>
<param
name=
"From"
value=
"dmc@localhost"
/>
<param
name=
"From"
value=
"dmc@localhost"
/>
<param
name=
"To"
value=
"root@localhost"
/>
<param
name=
"To"
value=
"root@localhost"
/>
<param
name=
"Subject"
value=
"ATTENTION: openBIS Server"
/>
<param
name=
"Subject"
value=
"ATTENTION: openBIS Server"
/>
<param
name=
"EvaluatorClass"
value=
"ch.systemsx.cisd.common.logging.AlwaysTrueTriggeringEventEvaluator"
/>
<param
name=
"EvaluatorClass"
value=
"ch.systemsx.cisd.common.logging.AlwaysTrueTriggeringEventEvaluator"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t] %c - %m%n"
/>
<param
name=
"ConversionPattern"
value=
"%d %-5p [%t] %c - %m%n"
/>
</layout>
</layout>
</appender>
</appender>
<!--
<!--
// If we have the category 'NOTIFY' and we send a logging event with priority 'info', then an email will be sent.
// If we have the category 'NOTIFY' and we send a logging event with priority 'info', then an email will be sent.
-->
-->
<category
name=
"NOTIFY"
>
<category
name=
"NOTIFY"
>
<priority
value=
"info"
/>
<priority
value=
"info"
/>
<appender-ref
ref=
"EMAIL"
/>
<appender-ref
ref=
"EMAIL"
/>
</category>
</category>
<!--
<!--
// If we have the category 'AUTH' and we send a logging event with priority 'info', then log to AUTH and USAGE.
// If we have the category 'AUTH' and we send a logging event with priority 'info', then log to AUTH and USAGE.
-->
-->
<category
name=
"AUTH"
>
<category
name=
"AUTH"
>
<priority
value=
"info"
/>
<priority
value=
"info"
/>
<appender-ref
ref=
"AUTH"
/>
<appender-ref
ref=
"AUTH"
/>
<appender-ref
ref=
"USAGE"
/>
<appender-ref
ref=
"USAGE"
/>
</category>
</category>
<!--
<!--
// If we have the category 'TRACKING' and we send a logging event with priority 'info', then log to USAGE.
// If we have the category 'TRACKING' and we send a logging event with priority 'info', then log to USAGE.
-->
-->
<category
name=
"TRACKING"
>
<category
name=
"TRACKING"
>
<priority
value=
"info"
/>
<priority
value=
"info"
/>
<appender-ref
ref=
"USAGE"
/>
<appender-ref
ref=
"USAGE"
/>
</category>
</category>
<!--
<!--
// If we have the category 'ACCESS' and we send a logging event with priority 'info', then log to USAGE.
// If we have the category 'ACCESS' and we send a logging event with priority 'info', then log to USAGE.
-->
-->
<category
name=
"ACCESS"
>
<category
name=
"ACCESS"
>
<priority
value=
"info"
/>
<priority
value=
"info"
/>
<appender-ref
ref=
"USAGE"
/>
<appender-ref
ref=
"USAGE"
/>
</category>
</category>
<!--
// Do not use log level debug otherwise plain passwords are readable.
<!--
// Do not use log level debug otherwise plain passwords are readable.
-->
-->
<logger
name=
"httpclient.wire"
>
<logger
name=
"httpclient.wire"
>
<level
value=
"ERROR"
/>
<level
value=
"ERROR"
/>
</logger>
</logger>
<root>
<root>
<priority
value=
"info"
/>
<priority
value=
"info"
/>
<appender-ref
ref=
"DEFAULT"
/>
<appender-ref
ref=
"DEFAULT"
/>
</root>
</root>
</log4j:configuration>
</log4j:configuration>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment