# Accessing Plex framework (e.g. Log) from Libraries/Shared

**URL:** <https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [February 15, 2013, 10:26am UTC](https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057 "2013-02-15T10:26:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kriska](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kriska](https://forums.plex.tv/u/kriska)\
**Post date:** [February 15, 2013, 10:26am UTC](https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057/1 "2013-02-15T10:26:13Z")

</div>

Hi,  
  
  
  
I am new to both Plex and Python and am having difficulties using the Plex framework.  
  
  
  
From my Code/\_\_init\_\_py file I use some classes from packages (my own) I have placed under Libraries/Shared.  
  
Is it possible to use Plex framework functions in those packages? For example, I am trying to use the Log function, but can’t seem to import it.  
  
I can import Framework… but where is the Log function? Where is everything… 🙂  
  
  
  
– Kris

---

<div class="post-metadata">

**Author:** ![kriska](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kriska](https://forums.plex.tv/u/kriska)\
**Post date:** [February 15, 2013, 10:50am UTC](https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057/2 "2013-02-15T10:50:18Z")

</div>

Hehehe… There is also a Log object instead of the Log function…pass that in and voila!

---

<div class="post-metadata">

**Author:** ![wyatt.mike\_gmail.com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wyatt.mike_gmail.com/32/3225_2.png) [@wyatt.mike\_gmail.com](https://forums.plex.tv/u/wyatt.mike_gmail.com)\
**Post date:** [February 22, 2013, 9:19am UTC](https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057/3 "2013-02-22T09:19:58Z")

</div>

this is what I’ve been doing to get things like Log, Dict, JSON to library code  
  
  
  
[https://gist.github.com/mikew/5011984](https://gist.github.com/mikew/5011984)  
  
  
  
not sure if there is a nicer way

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 10:54pm UTC](https://forums.plex.tv/t/accessing-plex-framework-e-g-log-from-libraries-shared/29057/4 "2019-12-20T22:54:23Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
