pub fn configure(&self, instance_id: Option<String>) -> Result<()> {
        self.try_lock(INITIALIZING)?;

        if let Some(some_instance_id) = instance_id {
            self.set_instance_id(some_instance_id);
        }

        self.try_init_max_level();

        STATE.store(UNINITIALIZED, Ordering::SeqCst);

        Ok(())
    }
/// Preconfigure the logger prior to initialization.
/// Performs the most basic steps in order to enable the logger to write to stdout or stderr
/// even before calling LOGGER.init(). Calling this method is optional.
/// This function can be called any number of times before the initialization.
/// Any calls made after the initialization will result in `Err()`.
///
/// # Arguments
///
/// * `instance_id` - Unique string identifying this logger session.
///                   This id is temporary and will be overwritten upon initialization.
///
/// # Example
///
/// ```
/// use logger::LOGGER;
/// use std::ops::Deref;
///
/// LOGGER
///     .deref()
///     .configure(Some("MY-INSTANCE".to_string()))
///     .unwrap();
/// ```
Preconfigure the logger prior to initialization.
Performs the most basic steps in order to enable the logger to write to stdout or stderr
even before calling LOGGER.init(). Calling this method is optional.
This function can be called any number of times before the initialization.
Any calls made after the initialization will result in `Err()`.
Preconfigure the logger prior to initialization . Performs the most basic steps in order to enable the logger to write to stdout or stderr even before calling LOGGER . init () . Calling this method is optional . This function can be called any number of times before the initialization . Any calls made after the initialization will result in ` Err () ` .
pub fn configure(&self, instance_id: Option<String>) -> Result<()> {
        self.try_lock(INITIALIZING)?;
        if let Some(some_instance_id) = instance_id {
            self.set_instance_id(some_instance_id);
        }
        self.try_init_max_level();
        STATE.store(UNINITIALIZED, Ordering::SeqCst);
        Ok(())
    }
pub fn configure ( & self , instance_id : Option < String > ) -> Result < ( ) > { self . try_lock ( INITIALIZING ) ? ; if let Some ( some_instance_id ) = instance_id { self . set_instance_id ( some_instance_id ) ; } self . try_init_max_level ( ) ; STATE . store ( UNINITIALIZED , Ordering :: SeqCst ) ; Ok ( ( ) ) }
Preconfigure the logger prior to initialization.
Preconfigure the logger prior to initialization .
&self
instance_id
Option<String>
example
```
use logger::LOGGER;
use std::ops::Deref.

LOGGER
.deref()
.configure(Some("MY-INSTANCE".to_string()))
.unwrap();
```
` ` ` use logger :: LOGGER ; use std :: ops :: Deref . LOGGER . deref () . configure ( Some ( " MY - INSTANCE " . to_string () )) . unwrap () ; ` ` `