Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get logger to work #13

Open
micheleietri opened this issue Jul 28, 2017 · 2 comments
Open

Can't get logger to work #13

micheleietri opened this issue Jul 28, 2017 · 2 comments

Comments

@micheleietri
Copy link

Hi, I can't get the logger to post on my slack channel,

that's how i configured log4net.config

<appender name="SlackAppender" type="Log4Slack.SlackAppender, Log4Slack"> <WebhookUrl value="https://hooks.slack.com/services/***/****/****" /> <Channel value="#gastaldi1860" /> <Username value="Log4Slack" /> <!--<IconEmoji value=":ghost:" />--> <AddAttachment value="false" /> <AddExceptionTraceField value="false" /> <UsernameAppendLoggerName value="false"/> <LinkNames value="false" /> <Proxy value="https://*.*:8080"/> <filter type="log4net.Filter.LevelRangeFilter"> <param name="LevelMin" value="INFO"/> <param name="LevelMax" value="FATAL"/> </filter> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date - %level - %message%newline" /> </layout> </appender>

i'm setting something wrong?

@flight-tom
Copy link

flight-tom commented Oct 8, 2017

Did you ever associate your logger with this appender?
e.g,

  <root additivity="true">
    <level value="ALL" />
    <appender-ref ref="SlackAppender" />
  </root>

@JeffSinclair
Copy link

The Example config is wrong.

The type in the appender needs to include MicroKnights in the assembly :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants