VASmalltalk – log4s – multiple logger creation

As you might have discovered, you can only define ONE new logger within one section (of your ini file). Therefore this is possible:

[zmqlog]
createLogger=(zmqlog)

and this is NOT possible:

[zmqlog]
createLogger=(zmqlog,zmqlog2)

to make the later possible you might change the framework code to:

EsLogManager>>checkForNewLogger: settings
  | values |
  (settings keys includes: 'createLogger') ifFalse: [^self].
  (values := self parseValue: (settings at: 'createLogger')) isEmpty
    ifTrue: [^EsLogLog error: MxESf13]. "$NLS$ Loggers must have a name"

  values do: [ :each | self class createLogger: each ]
This entry was posted in Smalltalk and tagged , , . Bookmark the permalink.

One Response to VASmalltalk – log4s – multiple logger creation

  1. Pingback: VASmalltalk – log4s and its design failures | Schrievkrom

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s