Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:07:41+00:00 2026-05-16T16:07:41+00:00

This is my logback configuration file: <?xml version=1.0 encoding=UTF-8?> <configuration> <contextName>xpofacebook</contextName> <appender name=ERROR class=ch.qos.logback.core.rolling.RollingFileAppender>

  • 0

This is my logback configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<contextName>xpofacebook</contextName>
<appender name="ERROR"
class="ch.qos.logback.core.rolling.RollingFileAppender">
   <File>log/xpofacebook-error.log</File>
   <Append>true</Append>
   <BufferedIO>false</BufferedIO>
   <ImmediateFlush>true</ImmediateFlush>
   <layout class="ch.qos.logback.classic.PatternLayout">
       <Pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</Pattern>
   </layout>
   <rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
       <FileNamePattern>log/error.log.%i.zip</FileNamePattern>
       <MinIndex>1</MinIndex>
       <MaxIndex>3</MaxIndex>
   </rollingPolicy>
   <triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
       <MaxFileSize>5MB</MaxFileSize>
   </triggeringPolicy>
   <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
       <level>WARN</level>
   </filter>
</appender>
<appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
   <File>log/xpofacebook-application.log</File>
   <Append>true</Append>
   <BufferedIO>false</BufferedIO>
   <ImmediateFlush>true</ImmediateFlush>
   <layout class="ch.qos.logback.classic.PatternLayout">
       <Pattern>%date{ISO8601} [%-5level] %logger{35} - %msg%n</Pattern>
   </layout>
   <rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
       <FileNamePattern>log/xpofacebook-application.log.%i.zip</FileNamePattern>
       <MinIndex>1</MinIndex>
       <MaxIndex>3</MaxIndex>
   </rollingPolicy>
   <triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
       <MaxFileSize>5MB</MaxFileSize>
   </triggeringPolicy>
</appender>
<root>
   <level value="DEBUG" />
   <appender-ref ref="ERROR" />
   <appender-ref ref="FILE" />
</root>
</configuration>

so far it works great
i need to add the following code to each class that i want to log messages in:

private static Logger log = Red5LoggerFactory.getLogger(ClassName.class, "xpofacebook");

i want the main log file xpofacebook-application.log to log messages outside of the classes that i work with.

If a flex client is connected to the red5 server and is trying to invoke a command that does not exist, the following error message will be show:

[NioProcessor-1] org.red5.server.service.ServiceInvoker - Method
getLiveChallenges with parameters [] not found in
com.xpogames.xpofacebook.Application@55e03a61 

How can i make sure that these type of error messages will be included in my log file as well?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:07:41+00:00Added an answer on May 16, 2026 at 4:07 pm

    This will take a change in the core logging functionality of Red5. Right now the stuff outside your application is controlled by a different logger because they fall within a classloader above yours. Without getting into the fun of Java classloaders here, I will simply say that a fix or workaround will eventually come.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following logback.xml file: <configuration debug=true> <appender name=STDOUT class=ch.qos.logback.core.ConsoleAppender> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread]
I have a project a-conf with src/main/resources/logback/conf/a/CommonAppenders.xml file: <included> <appender name=FILE class=FileAppender /> </included>
I have a logback appender: <appender name=logfile class=ch.qos.logback.core.rolling.RollingFileAppender> <rollingPolicy class=ch.qos.logback.core.rolling.TimeBasedRollingPolicy> <fileNamePattern>/opt/loghome/recon/log.%d{MM-dd-yyyy}.log </fileNamePattern> <maxHistory>30</maxHistory> </rollingPolicy>
I have a config file which lists all the configuration details for Logback.xml like
The class example below MyAppender is called from the logback.xml file. When the append()
I'd like to define a logback configuration file that will be able to :
For some circumstances I need to force flushing in logback's file appender immediately. I've
We are logging the application SOAP requests to the interfaces using the logback.xml configuration
How does the loading of the logback.xml file work? specifically, when is it loaded?
I would like to define some properties in my logback.xml config file and saw

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.