Retrace: Ideas Portal

Retrace combines several tools every development team needs, but we are always open to fresh new ideas.  Please submit your feature request/idea for Retrace below.

Allow configuration from the Sink, without the need of config.ConfigureStackifyLogging();

Currently the only way to configure the Stackify logging (atleast for Serilog sink) is by using the `config.ConfigureStackifyLogging();` command at the program startup.

 

This reads the configuration 'Stackify' section and initialize the library, unfortunately there is no way to manually provide the configuration to the Stackify lib so we are forced to follow the configuration conversions.

 

It would be great to support configuration the lib/sink using parameters, this could be very useful since we can provide the environment from existing config entries and we don't have to include a new entry for each library need this info. We can also organize the configuration as we want and not as the library developer force us to do.

configurator.WriteTo.Stackify('ApiKey','AppName', 'Staging', etc)

 

For example my config is like that:

 

  {
Environment: 'Staging',
Logging:{
Mail:{
Active: true,
SendTo: '[email protected]'
Creds: 'someCreds'
},
File:{
Active: false
},
Stackify:{
Active: true,
ApiKey: 'Key',
AppName: 'AppName'
}
}
}

 

Instead now I have to make it like that:

  {
Environment: 'Staging', // redundant
Logging:{
Mail:{
Active: true,
SendTo: '[email protected]'
Creds: 'someCreds'
},
File:{
Active: false
},
Stackify:{
Active: true
}
},
Stackify:{ //extra section, out of context
ApiKey: 'Key',
AppName: 'AppName',
Environment: 'Staging' // redundant
}
}

 

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Sep 4 2019
  • Attach files