3.101. <AuthLog FILE> Previous topic Parent topic Child topic Next topic

This clause logs the authentication successes and failures to a flat file. You can define as many <AuthLog FILE> clauses as you need to at the top level or within the Realm or Handler clauses. Each clause can specify different logging conditions and a different log file.
Here is an example of using <AuthLog FILE>:
# This auth logger logs both success and failure to a file. It
# also log authentications that are ignored.
<AuthLog FILE>
      Identifier myauthlogger
      Filename %L/authlog
      LogSuccess 1
      LogFailure 1
      LogIgnore  1
</AuthLog>
<Realm DEFAULT>
      <AuthBy FILE>
            Filename %D/users
      </AuthBy>
      # Log authentication results to a file
      AuthLog myauthlogger
</Realm>
<AuthLog FILE> understands also the same parameters as all AuthLogs. For more information, see Section 3.100. <AuthLog xxxxxx>.