Skip to Content.

rare-dev - Re: [rare-dev] capability and platform info from the dataplanes...

Subject: Rare project developers

List archive


Re: [rare-dev] capability and platform info from the dataplanes...


Chronological Thread 
  • From: mc36 <>
  • To: , Frédéric LOUI <>
  • Cc: Alexander Gall <>
  • Subject: Re: [rare-dev] capability and platform info from the dataplanes...
  • Date: Thu, 3 Feb 2022 17:25:10 +0100

partially yeahhh:
so you can allocate a separate memory log to each process you start,
and/or could populate the freerouter system-wide logging targets,
that is, terminal, file, irc, who knows what else... :)
for now, no separate logfiles generated, for that,
at the moment you have to configure a matching eem
and set that's targets separately...
it obviously have drawbacks both in config and in performance...
if you could give an example with the positive side effect of having
separate file backend for each process, it's not a big deal to do so...
regards,
cs



On 2/3/22 17:18, Fr d ric LOUI wrote:
Brilliant !

So does it mean for example that I can have different log buffer and
different files with lines rotation one for bfswd one for bfwwd and another
one for my external wireless process ? (It is an example of course as buffed,
bfswd is now managed by systemd)


Le 3 f vr. 2022 16:59, mc36 <> a crit :

hi,
after a bit of preparation refactoring (i moved the log buffer functionality
to a new class to be able to reuse it):
https://github.com/mc36/freeRouter/commit/27eaa686d83c13008d952a39a5a09173f8914bd4
it was straightforward to have the local collections for everything:
https://github.com/mc36/freeRouter/commit/c8a924f95902507b6953edcf94fe7fa1171562d9
so once it's configured, one can issue "sho logg proc p4emu" to see the last
some lines...
regards,
cs



sid(cfg-scrpt)#show config-differences
script logger
log-collect 123
sequence 1 puts "im here"
exit

sid(cfg-scrpt)#
sid(cfg-scrpt)#runnow
info userTest.doer:userTest.java:410 someone from %noVar:remote% hit the
script
sid(cfg-scrpt)#runnow
info userTest.doer:userTest.java:410 someone from %noVar:remote% hit the
script
sid(cfg-scrpt)#runnow
info userTest.doer:userTest.java:410 someone from %noVar:remote% hit the
script
sid(cfg-scrpt)#show logging script logger
im here
im here
im here

sid(cfg-scrpt)#


On 2/3/22 15:51, mc36 wrote:
not a bad idea, i'll add something asap... :)
On 2/3/22 15:48, Fr d ric LOUI wrote:
Maybe a: display proc <1234> can be useful ?




Archive powered by MHonArc 2.6.19.

Top of Page