The log is not actually stored, it is printed by red5
on the console, where you start it, but, on linux, if
you start it something like :

./red5.sh > access.log

you will get a nice access file log that you can
monitor with : tail -f access.log

or you can even write and then preg in it for ip
adresses, start/end time of connection, etc... and
build some nice statistics with it :) (if you want to
build a pay per view system, this might be useful)

--- morten hundevad <[EMAIL PROTECTED]> wrote:

> Thanks for help =),
> 
> I dit check the red5 migration guide =) thanks..
> however english is not my 
> best language. and my fcs/fms knolage is not "that"
> great ...
> 
> where is the "log" stored ? ( as in where is it
> output )
> added (Red5\lib\commons-logging.jar ) to project.
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> 
> 
> Morten
> 
> >From: stoica ionut <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: [Red5] few questions,IScheduledJob /
> Set<..> / 
> >IServiceCapableConnection.invoke()
> >Date: Tue, 6 Feb 2007 06:53:49 -0800 (PST)
> >
> >Here :
> >
> >// for the HashTable :
> >import java.util.Hashtable;
> >
> >// for logging
> >import org.apache.commons.logging.Log;
> >import org.apache.commons.logging.LogFactory;
> >
> >// for application
> >import org.red5.server.adapter.ApplicationAdapter;
> >import org.red5.server.api.IClient;
> >import org.red5.server.api.IConnection;
> >import org.red5.server.api.IScope;
> >import org.red5.server.api.Red5;
> >import
> >org.red5.server.api.service.IPendingServiceCall;
> >import
>
>org.red5.server.api.service.IPendingServiceCallback;
> >import
>
>org.red5.server.api.service.IServiceCapableConnection;
> >
> >
> >
> >You should really check out the samples provided
> >together with red5 and the superb red5 migration
> guide
> >by joachim :
> >
> >
> >You find it here :
> >http://www.joachim-bauch.de/tutorials/red5
> >
> >
> >The rest is a mix of previous fcs/fms knowledge :P
> >
> >Lets hope the project gets a stable api and then we
> >will all contribute to the documentation, like
> amfphp
> >has it for example.
> >
> >
> >
> >
> >--- morten hundevad <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks alot, realy helped me alot =)
> > >
> > > Now, quick question..
> > >
> > > i cant seem to make work ... :
> > > import
> org.red5.server.adapter.ApplicationAdapter;
> > > import
> > >
> org.red5.server.api.service.IPendingServiceCallback;
> > > import
> > >
> org.red5.server.api.stream.IStreamAwareScopeHandler;
> > >
> > > public class Application extends
> ApplicationAdapter
> > > implements
> > > IPendingServiceCallback,
> IStreamAwareScopeHandler
> > > {..}
> > >
> > >
> > > and then how do log work ? and where to i import
> it
> > > from" ?I cannot find it
> > > =( ect ... :
> > >   private static final Log log =
> > > LogFactory.getLog(Application.class);
> > > ......
> > >                 log.info("will reject client " +
> > > swfUrl);
> > >
> > >
> > >
> > >
> > >
> > > >From: stoica ionut <[EMAIL PROTECTED]>
> > > >Reply-To: [email protected]
> > > >To: [email protected]
> > > >Subject: Re: [Red5] few questions,IScheduledJob
> /
> > > Set<..> /
> > > >IServiceCapableConnection.invoke()
> > > >Date: Mon, 5 Feb 2007 23:12:05 -0800 (PST)
> > > >
> > > >And dont forget to call :
> > > >
> > > >initApplication();
> > > >
> > > >in your appStart, like :
> > > >
> > > >@Override
> > > >public boolean appStart(IScope scope) {
> > > >   // init your handler here
> > > >
> > > >   this.initApplication();
> > > >
> > > >   log.info("Application started");
> > > >
> > > >   return true;
> > > >}
> > > >
> > > >
> > > >--- stoica ionut <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > clientObj.referrer issue :
> > > > >
> > > > > This is how you secure your application
> against
> > > > > leeches :
> > > > >
> > > > > public class Application extends
> > > ApplicationAdapter
> > > > > implements IPendingServiceCallback,
> > > > > IStreamAwareScopeHandler {
> > > > >
> > > > > private static final Log log =
> > > > > LogFactory.getLog(Application.class);
> > > > >
> > > > > // this is where you keep your allowed
> > > > > domains(clients/referrers)
> > > > > public Hashtable allowedDomains = new
> > > Hashtable();
> > > > >
> > > > > public void initApplication(){
> > > > > // if you test the swf directly :
> > > > >
> > >
> >
>
>allowedDomains.put("file:///C|/stuf/zbuf/smuf/foo.swf",
> > > > > new Boolean(true));
> > > > > // if you test from localhost
> > > > >
> allowedDomains.put("http://localhost/foo.swf";,
> > > new
> > > > > Boolean(true));
> > > > >
> > > > > // ... other swfs
> > > > > }
> > > > >
> > > > > @Override
> > > > > public boolean appConnect(IConnection conn,
> > > Object[]
> > > > > params){
> > > > >
> > > > > log.info("Application connect");
> > > > >
> > > > > IClient client = conn.getClient();
> > > > >
> > > > > String swfUrl =
> > > > >
> (String)conn.getConnectParams().get("swfUrl");
> > > > > Boolean isAllowed =
> > > > > (Boolean)allowedDomains.get(swfUrl);
> > > > > if(isAllowed != null){
> > > > > if(!isAllowed){
> > > > > log.info("will reject client " + swfUrl);
> > > > > rejectClient();
> > > > > return false;
> > > > > }else{
> > > > > log.info("will accept client" + swfUrl);
> > > > > }
> > > > > }
> > > > > else
> > > > > {
> > > > > log.info("Reject client " + swfUrl);
> > > > > rejectClient();
> > > > > return false;
> > > > > }
> 
=== message truncated ===>
_______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
> 



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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

Reply via email to