# Create an log adapter

**URL:** <https://discourse.cakephp.org/t/create-an-log-adapter/1406>\
**Category:** Need Help\
**Created:** [October 30, 2016, 4:30pm UTC](https://discourse.cakephp.org/t/create-an-log-adapter/1406 "2016-10-30T16:30:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![galerienv](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@galerienv](https://discourse.cakephp.org/u/galerienv)\
**Post date:** [October 30, 2016, 4:30pm UTC](https://discourse.cakephp.org/t/create-an-log-adapter/1406/1 "2016-10-30T16:30:35Z")

</div>

Hello everybody,

I try to create an log adapter to log Soap request passed to url with built in function.

I have follow the cakephp 3.x documentation and they don’t usable. already same error even if i change name  
Fatal error: Cannot declare class App\Log\Engine\SoapClientLog, because the name is already in use in C:\wamp64\www\WsusOnLinux\plugins\SoapClient\src\Log\Engine\SoapClientLog.php on line 22

SoapClientLog

> \<?php

> namespace App\Log\Engine;  
> use Cake\Log\Engine\BaseLog;

> class SoapClientLog extends BaseLog  
> {  
> public function \_\_construct($options = )  
> {  
> parent::\_\_construct($options);  
> // …  
> }
> 
> ```
> public function log($level, $message, array $context = [])
> {
> return;
> }
> 
> ```
> 
> }

My app\_Local.php

> Log::config(‘otherFile’, [  
> ‘className’ =\> ‘SoapClient.SoapClient’,  
> ‘path’ =\> LOGS,  
> ‘model’ =\> ‘LogEntry’,  
> //‘levels’ =\> [‘WDSL’],  
> // ‘file’ =\> ‘WsdlRequest.log’ ,  
> ]),
