Should i put in a feature request ?

Steven Gong wrote:
>
> On 5/9/07, *Dan Rossi* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     I cant see those methods you mentioned, is that a question ?
>
>
> No, the method I mentioned doesn't exist. I just provided a possible 
> solution for Scope-level logging. 
>
>     I guess that could also work if I can dynamically set the sub
>     scope name
>     as the category to log to for logging to different files ?
>
>
> I think a good solution might be: the scope initializes a logger first 
> (whether dynamic or static) and all the objects that are contained in 
> the scope will use that logger. This is how concerns are well separated.
>
>     Steven Gong wrote:
>     > And the logger should also be maintained in Scope, say
>     > Scope.getScopeLogger(). The Connection and Stream that belong to the
>     > scope need to obtain the logger by getScope().getScopeLogger() and
>     > then do the logging stuff.
>     >
>     > On 5/9/07, *Dan Rossi* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>
>     wrote:
>     >
>     >     Ahh i already do for the application level logging. So
>     whatever is
>     >     logged at the application level is going to a seperate file its
>     >     outside
>     >     the root logger cat. I guess i need to setup a category for each
>     >     subscope i want to log and then somehow set its
>     category  before
>     >     logging ?
>     >
>     >     ie /myapp/scope1 will log stats data to
>     >     /logs/scope1/red5_timestamp.log
>     >
>     >     and
>     >
>     >     /myapp/scope2 will log stats data to
>     /logs/scope2/red5_timestamp.log
>     >
>     >     here is my apps log4j.xml currently so none of the root
>     categories
>     >     from
>     >     the red5 server logs gets added
>     >
>     >     <?xml version="1.0" encoding="UTF-8" ?>
>     >     <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>     >     <log4j:configuration>
>     >
>     >       <appender name="STATS" class="
>     org.apache.log4j.ConsoleAppender ">
>     >             <param name="Threshold" value="INFO"/>
>     >             <layout class="logging.W3CPatternLayout">
>     >                 <param name="Fields"
>     >                     value="field1,field3,field2"/>
>     >                 <param name="Delimiter"
>     >                     value="\t"/>
>     >             </layout>
>     >         </appender>
>     >
>     >
>     >
>     >         <appender name="APP"
>     >     class="org.apache.log4j.DailyRollingFileAppender">
>     >             <param name="File"
>     >     value="${vod.root}/logs/application/app.log"/>
>     >             <param name="DatePattern" value="'.'yyyy-MM-dd"/>
>     >             <param name="Threshold" value="INFO"/>
>     >
>     >             <layout class="org.apache.log4j.PatternLayout">
>     >                 <param name="ConversionPattern"
>     >                     value="[%p] %r %t:( %c{1}.%M ) %m %n"/>
>     >             </layout>
>     >             <filter class="org.apache.log4j.varia.LevelRangeFilter">
>     >                 <param name="LevelMin" value="INFO"/>
>     >             </filter>
>     >
>     >         </appender>
>     >
>     >
>     >         <logger name="stats.VODApplication">
>     >             <level value="INFO"/>
>     >             <appender-ref ref="STATS"/>
>     >         </logger>
>     >
>     >         <logger name="app.VODApplication">
>     >             <level value="INFO"/>
>     >             <appender-ref ref="APP"/>
>     >         </logger>
>     >
>     >         <logger name="generator.FileNameGenerator ">
>     >             <level value="INFO"/>
>     >             <appender-ref ref="APP"/>
>     >         </logger>
>     >     </log4j:configuration>
>     >
>     >
>     >
>     >
>     >     Steven Gong wrote:
>     >     >
>     >     >
>     >     > On 5/9/07, *Dan Rossi* <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     >     > <mailto: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>>>
>     >     wrote:
>     >     >
>     >     >     Hi i was wondering if its possible to create seperate
>     config
>     >     files for
>     >     >     sub scopes in an application ? Id like to be able to set
>     >     different
>     >     >     log4j
>     >     >     settings so each sub scope has its own config file.
>     Possible
>     >     ? I guess
>     >     >     this is a spring question correct ? Or does red5
>     >     specifically load the
>     >     >     config files ?
>     >     >
>     >     >
>     >     > If you want the log4j specific settings, I am afraid it's not
>     >     possible
>     >     > currently as Red5 uses a single conf file for log4j. It's
>     >     possible to
>     >     > separate the log files for different scopes but might need an
>     >     > enhancement of the logger category and logger creation.
>     >     >
>     >     >     _______________________________________________
>     >     >     Red5 mailing list
>     >     >     [email protected] <mailto:[email protected]> <mailto:
>     [email protected] <mailto:[email protected]>>
>     >     <mailto:[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>>
>     >     >     http://osflash.org/mailman/listinfo/red5_osflash.org
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > --
>     >     > I cannot tell why this heart languishes in silence. It is
>     for small
>     >     > needs it never asks, or knows or remembers.  -- Tagore
>     >     >
>     >     > Best Regards
>     >     > Steven Gong
>     >     >
>     >    
>     ------------------------------------------------------------------------
>
>     >
>     >     >
>     >     > _______________________________________________
>     >     > Red5 mailing list
>     >     > [email protected] <mailto:[email protected]> <mailto:
>     [email protected] <mailto:[email protected]>>
>     >     > http://osflash.org/mailman/listinfo/red5_osflash.org
>     >     >
>     >
>     >
>     >     _______________________________________________
>     >     Red5 mailing list
>     >     [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >     http://osflash.org/mailman/listinfo/red5_osflash.org
>     >
>     >
>     >
>     >
>     > --
>     > I cannot tell why this heart languishes in silence. It is for small
>     > needs it never asks, or knows or remembers.  -- Tagore
>     >
>     > Best Regards
>     > Steven Gong
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Red5 mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://osflash.org/mailman/listinfo/red5_osflash.org
>     >
>
>
>     _______________________________________________
>     Red5 mailing list
>     [email protected] <mailto:[email protected]>
>     http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> -- 
> I cannot tell why this heart languishes in silence. It is for small 
> needs it never asks, or knows or remembers.  -- Tagore
>
> Best Regards
> Steven Gong
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to