All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.picketlink.idm.IDMLog Maven / Gradle / Ivy

There is a newer version: 5.0.0-2013Jan16
Show newest version
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2012, Red Hat, Inc., and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.picketlink.idm;

import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger.Level;
import org.jboss.logging.Message;
import org.jboss.logging.MessageLogger;
import org.picketlink.common.logging.Log;
import org.picketlink.common.logging.LogFactory;
import org.picketlink.idm.model.Account;
import org.picketlink.idm.model.IdentityType;
import org.picketlink.idm.model.basic.Realm;
import org.picketlink.idm.spi.IdentityStore;

import static org.picketlink.idm.IDMLog.PICKETLINK_IDM_PROJECT_CODE;

/**
 * @author Pedro Silva
 *
 */
@MessageLogger(projectCode = PICKETLINK_IDM_PROJECT_CODE)
public interface IDMLog extends Log {

    String PICKETLINK_IDM_PROJECT_CODE = "PLIDM";

    /**
     * 

This is the root logger. General messages should be logged using it.

*/ IDMLog ROOT_LOGGER = LogFactory.getLog(IDMLog.class, IDMLog.class.getPackage().getName()); /** *

This is the root logger for identity stores. General and implementation agnostic messages should be logged using it.

*/ IDMLog IDENTITY_STORE_LOGGER = LogFactory.getLog(IDMLog.class, IDMLog.class.getPackage().getName() + ".identity.store"); /** *

This is the root logger for credential management. General and implementation agnostic messages should be logged using it.

*/ IDMLog CREDENTIAL_LOGGER = LogFactory.getLog(IDMLog.class, IDMLog.class.getPackage().getName() + ".credential"); // General logging messages. Ids 1000-1099. @LogMessage(level = Level.INFO) @Message(id = 1000, value = "Bootstrapping PicketLink IDM Partition Manager") void partitionManagerBootstrap(); @LogMessage(level = Level.INFO) @Message(id = 1001, value = "Initializing Identity Store [%s]") void storeInitializing(Class storeType); @LogMessage(level = Level.DEBUG) @Message(id = 1002, value = "No partition assigned for identity type [%s] by identity store [%s]. We assume this entry belongs to the default partition [%s].") void partitionUndefinedForTypeUsingDefault(IdentityType identityType, IdentityStore identityStore, Realm defaultPartition); @LogMessage(level = Level.DEBUG) @Message(id = 1003, value = "Trying to find account [%s] using default account type [%s] with property [%s].") void credentialRetrievingAccount(String loginName, Class accountType, String property); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy